invoking a c# event

Associate
Joined
17 Oct 2002
Posts
312
Location
herts
lo again :o

i used to dabble in a bit of vb6 and am trying to learn c# and finding it hard so please bare with me :D .
i am using c# express 2008.

how do i invoke a onfocus event for a textbox?

if i click the text box in design view i get a _texchanged event in code view automatically. in vs6 i could pick an event from the drop down box if i recall correctly.
where can i find a list of events/methods please?

cheers

matt
 
If you click on the icon that looks like a yellow lightning bolt in the properties window you should see all the events for the control you're focussed on.
Double click one of these and it will hook up the procedure to the event.

Be warned that it isn't like VB6 though, where it just works by magic. Behind the scenes it adds the event handler in code.
If this is an area you are unfamiliar with I suggest you have a read up on delegates in C#.
 
Back
Top Bottom