Need some help in my first Win Form application.
A key click event handler works fine internally as a private method.
Unfortunately I don't know how I can extract the information out of the private event handler.
I need the 'keynum' paramater outside the method.
A return parameter is not accepted in the event handler (The relevant hidden delegate is set void?)
The error is: byte WindowsFormsApplication4.Form1.Key_Click(object, System.EventArgs)' has the wrong return type
Sam
|
SamPosted Sep 15, 2009, 9:26 AM
I did as you suggested and it works now (after making the field private and adding getter and setter properties).
Another question:
I have a small rich textbox printing method in my Form1 class. When I call it from another class with a parameter, it prints null.
The reason I found to be the initialization of the text box each time I call its class.
(When i do the same printing from within Form1 it work perfect).
What am I doing wrong?
Thanks.
Roei BarPosted Sep 13, 2009, 10:28 AM
hope this helps
SamPosted Sep 13, 2009, 5:00 AM
How?
The automatic C# event handler is Private, void.
Thanks
Sam
Roei BarPosted Sep 12, 2009, 3:41 PM