Can I do this in C# with Drag-n-Drop?
In VB6, I could select a control and then select an event (like button click or mouse down). Well, in C#, I double click a control and it automaticall puts code for an event, like when I do a button its button click. What if I want mousehover? Is the only way to do that editing the code, or can I do that with teh UI? Thanks.
Greetings,
In the properties window, there is a little button with a lightning bolt on it. Click that button, then a list of all events will be displayed. Double click the event you want to add.
Just as a side note: You can also add your own events
Cheers.
In the properties window, there is a little button with a lightning bolt on it. Click that button, then a list of all events will be displayed. Double click the event you want to add.
Just as a side note: You can also add your own events
Cheers.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement