Click to See Complete Forum and Search --> : Quick way of assigning events in designer?


Grofit
April 14th, 2009, 09:00 AM
Hey,

On thing that really bugs me about VS (which is probably down to my lack of knowledge) is that whenever i want something to do anything other than its default event (like forms do OnLoad, buttons do OnClick etc) i have to manually write the code for it...

Is there any way to get the designer to create simple events for me, so like giving a form OnClick event?

RaleTheBlade
April 14th, 2009, 09:56 AM
Not to my knowledge, however if you look at the Properties pane for the control you want to handle events for there is a lightning bolt at the top. Click that and it will show you all events that are available to handle and all you have to do is double click the event and it will generate a handler for you.

nelo
April 14th, 2009, 05:03 PM
Not to my knowledge, however if you look at the Properties pane for the control you want to handle events for there is a lightning bolt at the top. Click that and it will show you all events that are available to handle and all you have to do is double click the event and it will generate a handler for you.
Well...it can't get much simpler than that really...:)

Grofit
April 15th, 2009, 04:22 AM
Thats the boy! thanks for that... never knew it was there and ive been using VS for years :D