new to c#: How to create event handlers for a form control?

  • Thread starter Thread starter Alejandro Lapeyre
  • Start date Start date
A

Alejandro Lapeyre

I am new to c#

In VB when I want to create an event handler for a form control I select the
control in the editor left combo box and
then select from the editor right combo box the event.

How do you do it in c# ?

Thank you!


Best Regards,
Alejandro Lapeyre
 
Alejandro,

Probably the easiest way is to select the control that you want an event
handler and view the properties for it. In the properties window you should
see a icon that looks like a lighting bold at the top this is switches the
view from properties to events. When you are in event view just find the
event you want to attach to and double click it. Visual Studio will create
the event handler and place you in code view in the event handler.

Michael
 
OLE!!!

Thanks!!
Alejandro Lapeyre

Michael Cierkowski said:
Alejandro,

Probably the easiest way is to select the control that you want an event
handler and view the properties for it. In the properties window you
should see a icon that looks like a lighting bold at the top this is
switches the view from properties to events. When you are in event view
just find the event you want to attach to and double click it. Visual
Studio will create the event handler and place you in code view in the
event handler.

Michael
 
I just wanted to thank you again for you answer

I am just starting to learn C#

I love this newsgroup
I know we do it just for free and just to know we helped.
Its wonderful to know people interact without event knowing nothing from
each other.
But we know there is a person there. A life, maybe a wife, maybe a dog.
(like me)
Maybe one of the lives, in one moment, we didnt choose.

In this days of trolling, a Hello! and to all the world here.

Best Regards,
from Buenos Aires, Argentina
Alejandro Lapeyre
 
Back
Top