C
COHENMARVIN
I am used to using Visual Basic, and I am now trying out Visual C#
2008 express. One thing I don't know is how to make a dialog box
disappear.
In VB, you could say
"Unload Me"
or
"Me.Hide"
But I can't find anything like this with C# forms.
Another thing I tried to do was put a textbox on a form and have the
cursor start in the textbox when the form appears.
So in the Form1_Load event, I put the line: TextBox1.Focus();.
But this does not work - the cursor does not appear in the textbox.
Speaking of the Form_Load event, in VB you can find the events
associated with a form easily - you just click on Form in the left
dropdown and you get its events in the right dropdown, and you can
click on the event you want and it is pasted into the code. But in C#
2008, I could not find this feature. Visual Studio does provide you
with two dropdowns at the top of your edit window, and one of them has
the Form in it, but the other does not show Form events.
So if I wanted to find events such as "load", "activate", etc. for a
Form, instead of relying on my memory, how do I do that?
Thanks,
Marvin
2008 express. One thing I don't know is how to make a dialog box
disappear.
In VB, you could say
"Unload Me"
or
"Me.Hide"
But I can't find anything like this with C# forms.
Another thing I tried to do was put a textbox on a form and have the
cursor start in the textbox when the form appears.
So in the Form1_Load event, I put the line: TextBox1.Focus();.
But this does not work - the cursor does not appear in the textbox.
Speaking of the Form_Load event, in VB you can find the events
associated with a form easily - you just click on Form in the left
dropdown and you get its events in the right dropdown, and you can
click on the event you want and it is pasted into the code. But in C#
2008, I could not find this feature. Visual Studio does provide you
with two dropdowns at the top of your edit window, and one of them has
the Form in it, but the other does not show Form events.
So if I wanted to find events such as "load", "activate", etc. for a
Form, instead of relying on my memory, how do I do that?
Thanks,
Marvin