Results 1 to 15 of 15

Thread: Are VB & VB.NET the same?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2009
    Posts
    3

    Are VB & VB.NET the same?

    If not, then how can I covert them and is more like a different kind of VB like VBA?

  2. #2
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: Are VB & VB.NET the same?

    Sometimes the terms are used interchangeably, but when someone says "VB" to me I assume they mean Visual Basic 6 or earlier. VB.net followed VB6 and generally people tend to refer to later versions as (for example) VB.Net 2005 or VB.Net 2008. I would imagine as VB6 becomes a distant memory to today's developers the .Net part will get dropped more.

    You can import a "classic" VB project into .Net via Visual Studio, however it won't necessarily convert perfectly and you may need to tweak some things manually. You are highly unlikely to be able to convert .Net to VB.

  3. #3
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Are VB & VB.NET the same?

    Microsoft dropped the '.Net' part in 2005 so vb is not referring to a .Net version of it and not vb6/vba or previous.

    But like keystone's said vb from a vb6 programmer's history/point of view would refer to a non .net version of it, whereas I consider 'vb' to be referring to a .Net version even though I started in vb6 and I constantly work in vba at work.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  4. #4
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: Are VB & VB.NET the same?

    Microsoft dropped the '.Net' part in 2005
    Good point - hadn't noticed that. Having used VB since VB3 I've always mentally viewed "VB" as being versions up to 6 but always been aware that recent converts may use the term "VB" to mean the latest version. Wasn't aware that Microsoft themselves had "re-assigned" the term VB from 2005 onwards!

    I still think its worth checking the context though - there are a lot of companies still using "classic" VB (and the current count on these forums has 50% more people viewing the "VB6 and Earlier" board than the .Net one), so if a "newbie" is using the term VB its probably .Net they mean, if a slightly more senior citizen like myself uses it, they are probably meaning "pre .Net". Somewhere in between : probably worth asking!
    Last edited by keystone_paul; May 30th, 2009 at 04:58 PM.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Are VB & VB.NET the same?

    Moved to General Developer
    Quote Originally Posted by keystone_paul View Post
    Having used VB since VB3 I've always mentally viewed "VB" as being versions up to 6
    I also started with VB3 and as far as I'm concerned that is exactly what it means, i.e. VB means up to VB6...after that it is VB.NET

  6. #6
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: Are VB & VB.NET the same?

    Yea, I've only started to begin to call "VB.NET" as just "VB" and retire what I used to call "VB" as "VB6".
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  7. #7
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Are VB & VB.NET the same?

    Quote Originally Posted by Jenner View Post
    Yea, I've only started to begin to call "VB.NET" as just "VB" and retire what I used to call "VB" as "VB6".
    As have I, vb6 = vb6 and older, vb means .net 1.0 and up
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  8. #8
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Are VB & VB.NET the same?

    To get back to the original question, VBA is far more similar to VB6 than VB.NET is. You could think of it as "being a different kind of VB like VBA", but only if you are very loose in your categorizations. The syntax is largely the same, but everything else is different. This makes conversions both possible and seriously error prone. Therefore, most folks here recommend re-writing when moving from VB6 to any of the .NET versions, though I would also add that you can copy and paste individual functions from one to the other, if they are small and can be easily altered to a more .NET style.
    My usual boring signature: Nothing

  9. #9
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Are VB & VB.NET the same?

    Quote Originally Posted by Shaggy Hiker View Post
    To get back to the original question, VBA is far more similar to VB6 than VB.NET is. You could think of it as "being a different kind of VB like VBA", but only if you are very loose in your categorizations. The syntax is largely the same, but everything else is different. This makes conversions both possible and seriously error prone. Therefore, most folks here recommend re-writing when moving from VB6 to any of the .NET versions, though I would also add that you can copy and paste individual functions from one to the other, if they are small and can be easily altered to a more .NET style.
    I can back this up, the newest version of VBA (Office 2007) is still just a stripped down version of vb6, which if I might add, is a really f-ing annoying language to program in.

    One of my two jobs has be programming in vba in Access 2003 & 2007. Very tedious.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

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

    Re: Are VB & VB.NET the same?

    Juggalo - rest assured that at some point (yet to be defined I might add).... VBA will be replaced by .NET in all of the Office products... and not a "light" version of .NET.... it's been promised to be the full and complete framework.... We'll have to wait and see. I know that it's already possible to build Add-Ons and extension for Office in .NET... but inside of the app itself, not yet.

    -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??? *

  11. #11
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Are VB & VB.NET the same?

    Quote Originally Posted by techgnome View Post
    Juggalo - rest assured that at some point (yet to be defined I might add).... VBA will be replaced by .NET in all of the Office products... and not a "light" version of .NET.... it's been promised to be the full and complete framework.... We'll have to wait and see. I know that it's already possible to build Add-Ons and extension for Office in .NET... but inside of the app itself, not yet.

    -tg
    I know and when it does happen I'm sure I'll be the one assigned to upgrade the 200+ apps currently in use when the time comes too.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  12. #12
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Are VB & VB.NET the same?

    When that time comes, it'll put a stake in VB6, too. I learned VBA before I learned VB5 (back when Excel was the first and only to use VBA). I would guess that there are lots of people who started with a macro language in Excel, Access, or some other, then migrated to the full language. If you start in VBA, you migrate to VB6, but if you start in .NET, you will migrate to .NET.
    My usual boring signature: Nothing

  13. #13
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Are VB & VB.NET the same?

    Quote Originally Posted by Shaggy Hiker View Post
    When that time comes, it'll put a stake in VB6, too. I learned VBA before I learned VB5 (back when Excel was the first and only to use VBA). I would guess that there are lots of people who started with a macro language in Excel, Access, or some other, then migrated to the full language. If you start in VBA, you migrate to VB6, but if you start in .NET, you will migrate to .NET.
    That's basically how I look at it, minus the migrate from .Net to .Net (I don't believe in the migration from where you are to where you already are).

    But I actually learned vb5/vb6 then .Net 1.1 and it wasn't until I got an actual programming job that I got slammed with the learning of vba in access 2003 (which eventually became access 2007 when it was released)
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  14. #14
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Are VB & VB.NET the same?

    Quote Originally Posted by JuggaloBrotha View Post
    That's basically how I look at it, minus the migrate from .Net to .Net (I don't believe in the migration from where you are to where you already are).
    To quote the Red Queen from Through the Looking Glass:

    "Sometimes you have to run as hard as you can just to stay in one place."
    My usual boring signature: Nothing

  15. #15
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Are VB & VB.NET the same?

    Quote Originally Posted by Shaggy Hiker View Post
    To quote the Red Queen from Through the Looking Glass:

    "Sometimes you have to run as hard as you can just to stay in one place."
    I forget who's sig the quote is in but here's the quote "I like treadmills because at least then I know I'm running nowhere."
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

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