Results 1 to 8 of 8

Thread: [RESOLVED] C# IDE question

  1. #1

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    Resolved [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.
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    Re: C# IDE question

    Quote 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.
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: C# IDE question

    Where are the properties of a component usually listed? In the Propertis window, which I specified in my previous post.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    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.
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Addicted Member zahadumy's Avatar
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    187

    Re: [RESOLVED] C# IDE question

    Quote 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.
    The first step in solving a problem is to define the problem clearly.

    -----
    Icons | EZIconConverter | Popup Messages
    101 samples: 2003 2005
    Code converter: C# -> VB .NET | VB .NET -> C# | VB .NET <-> C#


    -----
    Visual Studio 2005/.NET Framework 2.0

  8. #8
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    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.
    Merry Christmas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width