Results 1 to 14 of 14

Thread: VB6 to .NET tutorials [non-code question]

  1. #1

    Thread Starter
    Hyperactive Member deathfxu's Avatar
    Join Date
    Mar 2009
    Location
    USA
    Posts
    279

    VB6 to .NET tutorials [non-code question]

    I have used vb6 since shortly after it's release about 10 years ago, and never took the time to make the jump to .net. I have recently been trying to motivate myself, and I wonder if anyone can recommend a good vb6 to .net tutorial for a more hardcore coder like myself.

    Any info or words of encouragement are greatly appreciated.


    edit: Should I just start off with .net 08?
    Last edited by deathfxu; May 31st, 2009 at 06:30 PM. Reason: question

  2. #2
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: VB6 to .NET tutorials [non-code question]

    Option Explicit should not be an Option!

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: VB6 to .NET tutorials [non-code question]

    the language itself is the same. You just have to learn the functions. I'd say hop into it and whenever you get to a part of a program you don't know how to write, hit the documentation. It's what i do.

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: VB6 to .NET tutorials [non-code question]

    I plan on attacking .Net this summer. The proprietary work I do is slowly moving towards .Net; not so-much where I work, but my parent organizations and that is rolling down hill to me in a year if not sooner.

    Anyway, I did buy some books and I plan on cheating a bit. I do plan on using this site, PSC and other sites that post complete applications, download some, disect it and learn from it. When I can duplicate their work, then I'll move onto more difficult projects. Eventually, starting writing my own, posting to those sites and get feedback.

    Last but certainly not least, I will be a big user of this forum, but as a questioner vs a provider.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: VB6 to .NET tutorials [non-code question]

    Some personal rant...

    I managed to live without VB6 for some three - four months. Then I've been back on playing around with it for a while again. For some reason VB6 has a high level of addiction that I've yet to find in other tools.

    I've downloaded VB2008EE, but I didn't really get myself to do anything with it. Now that I tried to launch it it wanted me to register. Bothersome, I just closed the window. These small things seem to keep me away from .NET. I also still don't like the idea of a massive framework that I can never learn in it's entirelity, even though it is now installed by default on most Windows setups.

    I did also buy REALbasic as it also allows me to code for other than Windows platforms. It has it's problems though, I need to learn how to make the applications feel faster. At least the core is much more modern than VB6, providing things such as Unicode and sorting by default helps quite a bit. However the fact that to do multiplatform coding I have to avoid using Windows API doesn't make things easy for me: learning powerful use of VB6 also meant learning powerful usage of API and understanding COM. All this knowledge feels quite wasted with the new tools.


    My greatest issue is that being at non-IT job I don't have the time to spend on learning entirely new things. Adding also having more "life" in my life I'm in serious lack of both time and mental strength to put into learning new programming tools.

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

    Re: VB6 to .NET tutorials [non-code question]

    Moved To General Developer
    Quote Originally Posted by deathfxu
    Should I just start off with .net 08?
    That would be my suggestion.
    Last edited by Hack; Jun 1st, 2009 at 06:57 AM.

  7. #7

    Thread Starter
    Hyperactive Member deathfxu's Avatar
    Join Date
    Mar 2009
    Location
    USA
    Posts
    279

    Re: VB6 to .NET tutorials [non-code question]

    Well I have started now. It's not too bad, but there are a lot of differences. Even basic stuff has changed. There are new datatypes (and different meanings for old ones). In most cases VB has made bad coding practices impossible now, like no Variant data type, etc.

    I'll leave this thread open for a bit so as I come across good tutorials, I can put them here for you guys to use if you'd like.

    http://www.thescarms.com/vbasic/vb6vsvbnet.aspx - Rating 4 (of 5) - very concise list. 10 minute read-through and covers many of the big coding differences.

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

    Re: VB6 to .NET tutorials [non-code question]

    Here is a good book for beginners...

    http://extra.codeguru.com/displayReview.asp?name=TYVB08

  9. #9
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: VB6 to .NET tutorials [non-code question]

    i miss variants. It made overloading a function a snap. I just had my parameter be a variant and i could pass it anything.

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

    Re: VB6 to .NET tutorials [non-code question]

    Object is the new Variant....sort of. Everything is derived from Object, but there may be more useful things that you can do with it, and a few things that you can't do with it. I never used Variant, so there are probably more differences than I can think of.
    My usual boring signature: Nothing

  11. #11

    Thread Starter
    Hyperactive Member deathfxu's Avatar
    Join Date
    Mar 2009
    Location
    USA
    Posts
    279

    Re: VB6 to .NET tutorials [non-code question]

    I used to write functions that would receive a Variant, and based on what type it was, it did something different. Gone are the days of writing one function to do 50 things based on data type. =/

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

    Re: VB6 to .NET tutorials [non-code question]

    They aren't dead. Take an argument of type Object and use Object.GetType to figure out the type for the switch. You also have the option of writing generics that deal with type T where T is determined at runtime.
    My usual boring signature: Nothing

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

    Re: VB6 to .NET tutorials [non-code question]

    That's what Overloading is for.... now you have 50 functions that doe one ting (which is how it should be), but the version that's called will be based on the parameter types....

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

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

    Re: VB6 to .NET tutorials [non-code question]

    Right, more than one way to skin a cat these days.
    My usual boring signature: Nothing

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