[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?
Re: VS2005 code generation
Select ListView1 on the left first, then select DoubleClick on the right.
-tg
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.
Re: VS2005 code generation
oops I clicked twice too fast.
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
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?
Re: VS2005 code generation
I get General, Form1, Form1 Events, ListView1
-tg
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.
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
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.