[RESOLVED] Event Code not generating
I have VS2008. If I am using vb.net, in the code window, I can select a control and any of the related events and the basic code structure is automatically formed.But when I use C#, it does not happen. I am not able to automatically link basic events like Form_Resize, etc. What do I have to do? or is it that this feature is not available in C# at all?
Thanks
GeoNav
Re: Event Code not generating
It is most certainly available in C#. If you double click a control, the default event should be wired up for you. If you look at the properties window with a control selected, click the little lightning bolt to get a list of events.
Re: Event Code not generating
It is common control (like one from System.Windows.Forms.dll), or a custom control? The event skelet is generated on double click only if one of control's event is annotated with DefaultEventAttribute.
Re: Event Code not generating
Quote:
Originally Posted by
BigEd781
It is most certainly available in C#. If you double click a control, the default event should be wired up for you. If you look at the properties window with a control selected, click the little lightning bolt to get a list of events.
Thanks a lot. It worked.