|
-
May 29th, 2006, 06:59 PM
#1
Thread Starter
Addicted Member
[RESOLVED] C# IDE question
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.
-
May 29th, 2006, 07:13 PM
#2
Re: C# IDE question
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.
-
May 29th, 2006, 07:25 PM
#3
Thread Starter
Addicted Member
Re: C# IDE question
 Originally Posted by jmcilhinney
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.
-
May 29th, 2006, 07:36 PM
#4
Re: C# IDE question
Where are the properties of a component usually listed? In the Propertis window, which I specified in my previous post.
-
May 29th, 2006, 07:54 PM
#5
Thread Starter
Addicted Member
Re: C# IDE question
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.
-
May 29th, 2006, 08:14 PM
#6
Re: [RESOLVED] C# IDE question
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.
-
May 29th, 2006, 08:25 PM
#7
Thread Starter
Addicted Member
Re: [RESOLVED] C# IDE question
 Originally Posted by jmcilhinney
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
Last edited by zahadumy; May 29th, 2006 at 08:29 PM.
-
Jun 27th, 2006, 08:47 AM
#8
Fanatic Member
Re: [RESOLVED] C# IDE question
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|