Forms designer click event?

  • Thread starter Thread starter MadHead via .NET 247
  • Start date Start date
M

MadHead via .NET 247

Hi,

In the VS.net2003 C# forms designer (comming from VB6 by the way) how do I get the event code that runs when you single click the form? I would have thought that this is automatically generated.
Thanks
 
VS2003 generates the event automatically. For example when you doubel click
a button it generates a click event for the button and opens the code-view
where you can add the action for the event.
YOu can also select the form and go at properties screen to events. There
are all events listed , double click one and it adds the event to the form.


MadHead via .NET 247 said:
Hi,

In the VS.net2003 C# forms designer (comming from VB6 by the way) how do I
get the event code that runs when you single click the form? I would have
thought that this is automatically generated.
 
* MadHead via .NET 247 said:
In the VS.net2003 C# forms designer (comming from VB6 by the way) how do I get the event code that runs when you single click the form? I would have thought that this is automatically generated.
Thanks

Doubleclick the form/control to generate one event handler for the
control's default event. For other events, go to the code editor,
select the object in the left combobox on top of the editor and then
select the event name in the right combobox.
 
Back
Top