Jump to content

VS 2010 C# control events


Rick
 Share

Recommended Posts

Does anyone know of a way to make control event handlers with the editor vs coding them yourself? Like in VB.NET when in the code view there are 2 drop downs at the top. The left is for all the controls on the form you are in and the right would be all the events for the control in the drop down on the left. When when you select it, the editor fills in the code. This is an amazing time saver, but I know C# always lacked this. I would have figured 2010 wold have added this for C#.

 

The only other way I can see is to either define them all up front in the form load (ugly) or to go into the editor generated code and define them there ("dangerous" as defined by MS).

 

The only way to auto generate event handlers seems to be to dbl click the control on the designer, but that only gives you the 1 default event for that control. Which is not the one I'm looking for.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...