943,522 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 18799
  • VB.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 3rd, 2003
0

The Move.....Visual Basic 6, Visual Basic .NET ?

Expand Post »
I'm really scared and etchy about getting VB. NET, as I've just started out in VB 6 and I've gotten pretty used to it. But I wanted to know from experts that used VB 6 before....is it a big change? Will it be hard to get used to after just starting out in VB 6? What code changes are there? Any comments are appreciated, I really don't want to end up paying so much money, then find out that it's really hard and more complicated than VB 6. Please help.
Similar Threads
Reputation Points: 13
Solved Threads: 0
Light Poster
Mr Gates is offline Offline
36 posts
since May 2003
Jul 3rd, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

I'm not going to lie to you - it is a big difference. It's a big change, and it will be hard to get used to it - at first.

Over time, you will see how much better VB.NET. I refuse to work in VB6 now - it's crap compared to VB.NET.

Things to love about Visual Studio .NET's Development Environment:
-The same intellisene that we love :-)
-Auto code formatting -> something I love... I hate taking care of tabbing and stuff
-Statement Completion -> If you type "If 4 > 3 then", when you hit enter, it will automatticly put in the "End If"
-Manage SQL Servers

Why to go to .NET:
-Power, Power, Power!
-In the long run, easier development (once you are good at .NET)
-Build once, run optimized on any version of Windows
-Huge community for support
-XML Web Services (this is a whole other post in itself... but its really really cool stuff)

One change that comes up to my head right away is the .caption (or .label, I can't even remember) property from many objects are gone. It's now all standardized on .text (like TextBox1.text = "Mike", Label1.text="John"). This change, although small, shows why .NET is better then VB6 - its all standardized. No guessing :-).

Do a search on +VB6 +VB.NET +migrating you'll get some good sources :-).

One last thing - you now can do ASP.NET straight from VB.NETs IDE. It's really easy, and has gotten me into lots of web application programming projects (including my website - yes, the whole thing is written in VB.NET).
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Jul 3rd, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

Quote originally posted by Tekmaven ...
One change that comes up to my head right away is the .caption (or .label, I can't even remember) property from many objects are gone. It's now all standardized on .text (like TextBox1.text = "Mike", Label1.text="John"). This change, although small, shows why .NET is better then VB6 - its all standardized. No guessing :-).
In VB6 it was txtStuff.text and lblLabel.caption 8)
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Jul 3rd, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

Wait, so would this type of code work? It's just an event procedure that makes a label visible and not visible, along with changes the text in a textbox.

-------------
Private Sub cmdShow_Click()
lblInfo.Visible = True
txtMessage.Text = "You Clicked it"
End Sub
-------------

Or would everything have to be changed to ".Text" ? In my opinion that doesn't make sense.
Reputation Points: 13
Solved Threads: 0
Light Poster
Mr Gates is offline Offline
36 posts
since May 2003
Jul 3rd, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

Well, yes, but no.

In VB6, a click sub would need to be named with the buttoname_Click(). In .NET, that type of thing is gone. You can name the sub anything you want - it just needs to have a "handles" statement. So it could be, Private Sub mikeiscool() handles cmdShow.Click() -although most of the time it will still use that naming convention (with the handles keyword following it).

The visible property is still there, and txtMessage.Text = whatever will work too.

One last thing, its not a "Command" button anymore - its just refered to as a Button (or btn).
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Jul 3rd, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

I don't really get it. Wouldn't that just be more typing and make it harder?
Reputation Points: 13
Solved Threads: 0
Light Poster
Mr Gates is offline Offline
36 posts
since May 2003
Jul 3rd, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

Actually it makes a lot more sense. If you wanna check out Visual Studio 2003 (and Visual Basic .NET), Microsoft offers free online sessions into a computer running Visual Studio 2003.

Quote ...
Visual Studio .NET can help you with (nearly) every part of your job. But, don't take our word for it. Try Visual Studio .NET 2003 and Windows® Server 2003 for free* online and find out how these products can help you solve the most difficult development challenges you face today. With the Visual Studio .NET 2003 Hosted Experience, for three hours, you will have unlimited access to Visual Studio .NET Enterprise Architect edition, as well as a library of other valuable tools, resources, and code samples.

It's simple—no complex setup or installation is required to try out Visual Studio .NET 2003 running on a full-featured Windows Server 2003 hosted online. And there is no obligation to buy.
Here is a link: http://msdn.microsoft.com/vstudio/tryit/

I haven't found one change from VB6 to .NET to be bad. They take getting used to - but they are all there for a very good reason.
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Jul 4th, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

IMHO Tekmaven is right. The changes do take some getting use to, and yes the IDE is a little fancier and slicker than VB6, but in the end you will find most of your tools right where you would expect them.

It has long been the bane of VB programmers as VB not being completely Object Oriented, and since the code in both VB and C++ are compiled to essentially the same result, .NET bridges the gap by saying hey...be your favorite language and code it to get the result. Should you want to change languages, it is easy enough now to migrate over since VB.NET, C++.NET and C#.NET are all truly Object Oriented.

Being a VBA/VB6 dabbler, I have found that I can now do things in VB.NET that I found hard or some what difficult, in VB6, to being relatively easy to grasp & do.

That make sense?



Hope that helps...

P.S. Happy 4th of July all you Americans. I just returned from the Western US and enjoyed the entire drive immensely!
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Jul 5th, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

If you don't want to purchase Visual Studio.NET right now, you could always try SharpDevelop a free .NET IDE written in C# - you get the source too :-).

You don't need Visual Studio to compile .NET apps - you could even use Notepad to write it and the command line to compile. Microsoft provides the compilers free - just download the Microsoft .NET Framework SDK (the 110mb Framework download).
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Jul 5th, 2003
0

Re: The Move.....Visual Basic 6, Visual Basic .NET ?

Thank you all for the adequate answers, I'm sure I'll look into getting it sometime soon. Maybe not Visual Studio, just VB .NET.

One more thing, if I previously installed Visual Studio 6, can I still keep that installed AND Visual Studio .NET? Or will they interfere... :cry:
Reputation Points: 13
Solved Threads: 0
Light Poster
Mr Gates is offline Offline
36 posts
since May 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: How To Save Documents Inside Image
Next Thread in VB.NET Forum Timeline: Case Study in VB.Net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC