steved Posted March 31, 2003 Posted March 31, 2003 I've just come to the realization that I've been hand-coding all my event handlers in C#. I went to try adding an event handler in the VB style of clickin the dropdown combo box above the code window and to my surprise all that was available to me was [ProjectName].[FormName]. Whups! Any idea how I can find a GUI interface for adding event handlers? I realize this is a really ridiculous question, but until I realized that I was coding them by hand, I never really thought about it. I'd almost rather use a GUI tool as to avoid mucking around in the Windows Form Designer code. (Edit: I know this must be possible, since double-clicking a control in the designer window automatically creates an event handler for that controls default event - like Button_Click() for a command button.) Thanks! .steve Quote zig?
Moderators Robby Posted March 31, 2003 Moderators Posted March 31, 2003 As far as I know, VS 2002 does not have this feature, perhaps in the 2003 release. Quote Visit...Bassic Software
*Experts* Volte Posted March 31, 2003 *Experts* Posted March 31, 2003 Click a control, and then click the lightning bolt icon in the property grid. Viola! A list of events. Double click on one, or type in the desired sub name and press enter. Quote
steved Posted March 31, 2003 Author Posted March 31, 2003 Zoiks! Well, I'm an idiot. :) But I introduced the topic with that point, so I think it's excused. Thanks, vf. I knew it had to be in there somewhere, but for some reason I couldn't find it documented for the life of me. :P Too bad I'm a contractor where I work. A vs.net course would really make me happy. :) Thanks again. .steve Quote zig?
Moderators Robby Posted March 31, 2003 Moderators Posted March 31, 2003 Steve, is that what you ment? If so, boy was I on the wrong track. :( [edit] I guess it was, (we posted at the same time) Quote Visit...Bassic Software
steved Posted March 31, 2003 Author Posted March 31, 2003 Yeah, sorry. I should have clarified that it was like a "day-one" learning question. Been using C# for a while, but I haven't really done much with the IDE that doesn't have a direct equivalent in VB.net that I've already used. Quote zig?
Moderators Robby Posted April 1, 2003 Moderators Posted April 1, 2003 It's only because I had already read your previous 8 posts and found that since you are advanced in .NET, you would've already been aware of what Volte pointed out. So I was thinking it was something else that you were after. To make a long story short, I'll stop typing now. :) Quote Visit...Bassic Software
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.