I'm trying to learn VB.NET 2005. I'm a classic VB6 coder. I want to create a new class. VB6 provided a Class Wizard to make it easier (creating get-sets, initializers, destuctors, etc).
Why would there not be such a thing in the New&Improved VB? Isn't the idea to make life BETTER for us programmers?
Lewisburg, PA "Next year Raiders in the Super Bowl"
Posts
1,310
Re: (vb 2005) Class Wizard?
depending on if you are using the express version or not and i'm assuming your not but there is a item that you add to your project call ClassDiagram which does pretty much the same thing that the class wizard did, but it's going to take some getting use to
Derek - Using VS 2008 99% of the time and VS 2003 1% of the time
Not really a grip that anyone can help with. Mere frustration is all. Transition to the new VB language (even with knowledge of C++ and Java) is difficult enough without having the IDE completely revamped as well.
Again, nothing anyone can really help with. Please take no offence.
I didn't make .NET so I don't take any offense. I just figured if there was a specific issue you saw that made it worse than VB6, then youl could mention it, and some members may have some insight for you.
I came from VB6 as well, and to be honest I never want to open VB6 EVER!
I don't even like coding in .NET 2003 anymore, because the .NET 2005 IDE is so great.
Like anything else there is a learning curve to make the move, but its well worth it.
Lewisburg, PA "Next year Raiders in the Super Bowl"
Posts
1,310
Re: (vb 2005) Class Wizard?
Originally Posted by kleinma
I didn't make .NET so I don't take any offense. I just figured if there was a specific issue you saw that made it worse than VB6, then youl could mention it, and some members may have some insight for you.
I came from VB6 as well, and to be honest I never want to open VB6 EVER!
I don't even like coding in .NET 2003 anymore, because the .NET 2005 IDE is so great.
Like anything else there is a learning curve to make the move, but its well worth it.
well put and i agree with you 100%. i too came from vb6 and i can't stand to think of opening it for old projects and even projects in the 2003 IDE i can't stand dealing with. there were a few performance issues with the 2005 version but now that sp1 is out it seems much more stable
Derek - Using VS 2008 99% of the time and VS 2003 1% of the time
see where in your screenshot it says "immediate window" at the bottom?
click on the tab next to that, the one that says "class details" that is the menu I posted my screenshot of.
From there you can easily add methods, properties, fields, and events, easily pick their datatypes (it even support intellisense), their access modifier (public, private, etc.) and even enter summary or choose to hide them.
There are other options to the left of the grid (like making constructors, constants, etc) so play around a little to figure out all the features and capabilities.
After you are done using this "wizard" if you go to your class code, you will see the code has auto generated for you based on what you did in the "wizard"
Thank you. I stand corrected, and have edited my above post accordingly. As vbdotnetboy stated earlier, this will take a while to get used to, but it IS doable.