Results 1 to 10 of 10

Thread: [RESOLVED] VS2005 code generation

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Resolved [RESOLVED] VS2005 code generation

    I drop a listview on a form. I doubleclick the listview and automatically VS generates the code for listview1_SelectedIndexChanged but I want listview1_DoubleClick. In the older version I could just go to the dropdown on the right and look at all the methods of my listview and select double click and it would generate the code. Now when I look there are no other methods. Where do I find them and can I have it back on my dropdown?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VS2005 code generation

    Select ListView1 on the left first, then select DoubleClick on the right.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: VS2005 code generation

    Thats what I used to do but now in the left dropdown I only see the project and form name ie. ELibrary.fmView and nothing else. Is there a way to have the left box with all the items because I know in previous versions thats the way it was.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: VS2005 code generation

    oops I clicked twice too fast.
    Last edited by Beast777; Jun 14th, 2007 at 12:16 PM.

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VS2005 code generation

    Don't know what to tell you..... it's not like there's an option somewhere that can be turned on or off. If it's not showing, then it must not be on the form where you think it is..... ???

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: VS2005 code generation

    I don't understand, I have installed VS2005 on several machines and they are all the same. I get nothing but the form on the left dropdown. If you create a new form and drop a listview on it, do you see the listview in your dropdown?

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VS2005 code generation

    I get General, Form1, Form1 Events, ListView1


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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

    Re: VS2005 code generation

    Only VB.NET allows you to create event handlers form those drop-down lists in the code window. In C# you have to use the Properties window, and that has been the same in all versions of VS.NET. Click the Events button at the top of the Properties window and you will get a grid of events instead of properties. From 2005 VB supports this too. It can do some things that the other way cannot, like select an existing method to handle an event and create a single event handler for multiple events simultaneously.
    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

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VS2005 code generation

    And that would be a thousand lashings of a wet noodle to me on that one.... didn't even notice that it was in the C# forum. My bad.

    Still, that's good to know. I've always hooked up my events by hand in C# (maybe now I know why I do it that way).... so I've never noticed that the events listing wasn't there.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: VS2005 code generation

    Thank you for the events in the properties. I have been switching over from VB to C# and thats why I thought it was in both. Thanks.

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