|
-
Jun 14th, 2007, 09:37 AM
#1
Thread Starter
Fanatic Member
[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?
-
Jun 14th, 2007, 10:31 AM
#2
Re: VS2005 code generation
Select ListView1 on the left first, then select DoubleClick on the right.
-tg
-
Jun 14th, 2007, 12:11 PM
#3
Thread Starter
Fanatic Member
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.
-
Jun 14th, 2007, 12:11 PM
#4
Thread Starter
Fanatic Member
Re: VS2005 code generation
oops I clicked twice too fast.
Last edited by Beast777; Jun 14th, 2007 at 12:16 PM.
-
Jun 14th, 2007, 01:14 PM
#5
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
-
Jun 14th, 2007, 01:32 PM
#6
Thread Starter
Fanatic Member
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?
-
Jun 14th, 2007, 02:14 PM
#7
Re: VS2005 code generation
I get General, Form1, Form1 Events, ListView1
-tg
-
Jun 14th, 2007, 07:20 PM
#8
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.
-
Jun 15th, 2007, 08:47 AM
#9
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
-
Jun 18th, 2007, 06:59 AM
#10
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|