Rick Posted May 18, 2010 Share Posted May 18, 2010 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. Quote Link to comment Share on other sites More sharing options...
Rick Posted May 18, 2010 Author Share Posted May 18, 2010 Oh, nevermind. I see there is an event button in the properties. Lame-o VB.NET's way is so much better Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.