inighthawki Posted November 29, 2005 Posted November 29, 2005 OK, im a complete noob at C#, i came over from vb because of the slight similarities, and i wanted to learn C#...problem is im stumped already. In vb, to change the event it was as easy as selecting it in a drop box, or typing it in at the end of the sub declartion...in c# neither are anywhere to be found. For example, if i have a button on the form, when i dbl click on it to get to the code, it only gives me the option for what happens on Button1_Click, and no option for MouseOver, etc. The button is kinda a bad example because of its lack of useful events, but how would i accomplish changing this? Quote
Leaders snarfblam Posted November 29, 2005 Leaders Posted November 29, 2005 There should be a button in the properties window to list all the events for the object selected in the designer. Quote [sIGPIC]e[/sIGPIC]
Cags Posted November 29, 2005 Posted November 29, 2005 As marble_eater says you can view the events of a control in the properties tab of the designer, the button your looking for is a lightning bolt. Then you can simply double click an event and it will attach the event and take you to the code view. Quote Anybody looking for a graduate programmer (Midlands, England)?
inighthawki Posted November 30, 2005 Author Posted November 30, 2005 ok thx a bunch, i completely forgot about that in vb cause i never used it that way :P Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.