Click to See Complete Forum and Search --> : [RESOLVED] Event Code not generating
GeoNav
October 22nd, 2009, 11:11 AM
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
BigEd781
October 22nd, 2009, 12:28 PM
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.
boudino
October 23rd, 2009, 08:20 AM
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.
GeoNav
October 23rd, 2009, 11:20 AM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.