Click to See Complete Forum and Search --> : [RESOLVED] C# IDE question
zahadumy
May 29th, 2006, 06:59 PM
In VB, on the top of the form, you have 2 comboboxes: one where you can select the form or whatever control you want on the form, and the one in the right side contains the methods and events for the control selected in the first one. Why doesn't this work the same way in C#? I'm just trying to add an event for closing a form and I can't do it... All I can select in the first one is the form (which is by coincidence what I need), and in the right one I can't find the events... Am I blind or stupid? Please help me... Thank you.
jmcilhinney
May 29th, 2006, 07:13 PM
In C# you use the Properties window, as you now can in VB 2005 as well. You press the Events button at the top (with the lightning bolt) and it will list the component's events instead of its properties. This method has pros and cons when compared to the way you mention. In VB 2005 I use both at various times. Just remember that if you delete an event handler in code it is not removed from the Properties window in C# so your project won't compile until you go to the Properties window, right-clcik the event and select Reset.
zahadumy
May 29th, 2006, 07:25 PM
You press the Events button at the top (with the lightning bolt) and it will list the component's events instead of its properties.
I know I'm getting ridiculous, but where is that button? On the top of what? Thank you.
jmcilhinney
May 29th, 2006, 07:36 PM
Where are the properties of a component usually listed? In the Propertis window, which I specified in my previous post.
zahadumy
May 29th, 2006, 07:54 PM
Yes, I found it... But that button is there only if you select a form in design view. If you select the code of a form, it's not there. I guess it's just common sense, but I didn't think about it. Thank you, thank you again...
And one more thing:You must spread some Reputation around before giving it to jmcilhinney again.
You saved a lot of my time too many times answering my questions and the only way to thank you is to add to your reputation. If you really deserve a reputation point from me every single day for example, why isn't it possible? I guess it's just a security thing, because you could have 2 users and keep rating yourself, but you could easily track the people are doing this... I will look for a "website suggestions" forum and ask this to some moderator. Thank you very much.
jmcilhinney
May 29th, 2006, 08:14 PM
Don't worry about the rep. It's nice but it's not really that important. If people want a lot of rep then they've just got to help a lot of people. If you relax the rules people will start abusing the reputation system. I originally started posting responses because I wanted to return the favour for a question that I received answers to. Now I don't do it for the rep or through any community spirit. I'm just addicted to it is all. :)
zahadumy
May 29th, 2006, 08:25 PM
I originally started posting responses because I wanted to return the favour for a question that I received answers to.That's how it always begins. The reason you continue, if you do, is slightly different from man to man. I totally understand you. I love linux and I like to think I help some people on another forum. Not as many as you though... :P
JPicasso
Jun 27th, 2006, 08:47 AM
Great question, great answer.
I know I've seen and used that lightning bolt several times, but couldn't for the life of me find it today.
-the designer-.
Who'da thought.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.