Page 2 of 2 FirstFirst 12
Results 41 to 64 of 64

Thread: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

  1. #41
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    490

    Re: Tips for moving from VB6 to VB.NET

    Quote Originally Posted by Liadan23
    I'm working on a program that I was originally doing in VB editor because I wanted to get a start on it while I waited for my VB2003.Net to come. I would like to somehow transfer this work from editor to .Net. Is there a way to do this? I have Window2000 Professional if that helps to understand what kind of editor I was using. I appreciate the help! Thanks!
    same problem here...
    i dunt want to write that code again...is there any way...
    also Caption = "Form1"
    ClientHeight = 4650
    ClientLeft = 60
    ClientTop = 345
    ClientWidth = 6390
    LinkTopic = "Form1"
    ScaleHeight = 4650
    ScaleWidth = 6390
    StartUpPosition = 3

    also when i began re-writing th eabove code written in excel's visual basic editor i cud not locate client Height etc in the .net platform. somebody help
    asap.
    thanks

  2. #42
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Tips for moving from VB6 to VB.NET

    excel is VBA, which is like a consolidated version of VB6. You will find many differences between VBA and VB.NET

  3. #43
    New Member
    Join Date
    Jul 2005
    Location
    Chicago, IL or St. Louis, MO (depending if I'm at school or not)
    Posts
    9

    Re: Tips for moving from VB6 to VB.NET

    hmmm.....alright. I guess I'll just re-write the program in .Net. Thanks.

  4. #44
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Talking Re: Tips for moving from VB6 to VB.NET

    Quote Originally Posted by epixelman
    One tip I suggest is...

    .NET allows use to use old VB6 code in .NET by using the Microsoft.VisualBasic import declaration...

    I suggest that you use true "VB code" using the frameworks VB syntx.

    What I mean is... use the .NET framework's visual basic commands and not the VB6 commands. Convert all your VB6 code to true .NET framework code.

    It will save you headaches in the future.
    One thing that I have found out the hard-way is that you need to have admin rights / power user rights for the import statements to work. Also for the migration to work. That wasn't the case with VB6 earlier.
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

  5. #45
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Re: Tips for moving from VB6 to VB.NET

    Also, do not listen to people who tell you that migrating is a better option than re-writing. A complete rewrite is much cleaner compared to migrating and will save you a whole deal of time.
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

  6. #46
    New Member
    Join Date
    Jul 2005
    Location
    Chicago, IL or St. Louis, MO (depending if I'm at school or not)
    Posts
    9

    Re: Tips for moving from VB6 to VB.NET

    Yea I think you're probably right. It actually wasn't that bad to just re-write. I had to re-do my form and everything, but then I just copied and pasted my code from editor and fixed the parts that .Net had problems with. It didn't take long at all. Thanks for all your suggestions.

  7. #47
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Re: Tips for moving from VB6 to VB.NET

    FREE BOOK - Upgrading from VB6 to VB.NET

    This may have already been posted here...but here it is.....

    Download from http://msdn.microsoft.com/vbrun/stay.../upgradingvb6/

    Scroll to the bottom of the page to download the entire book.
    Last edited by birthjay; Jul 26th, 2005 at 09:07 AM.

  8. #48
    New Member
    Join Date
    Aug 2005
    Posts
    1

    Visual Basic .Net 2003 Standard??

    Hi,

    Dunno, if this is the right place or not, but I currently program using VB 6.0 prof and want to go to .Net. I know that VB6.0 requires the prof edition to create distributable apps, but is the same true for VB .net??

    The reason I ask is when I do searchs for VB.net, all I can find is the "Standard" edition not a professional one. I see there is a professional edition of the .net "studio", but neither mention the "distributable" aspect.

    Any help would be appriciated.....thanks.

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

    Re: Tips for moving from VB6 to VB.NET

    The only version that you can't build redist app with (as far as I know) is the Beta for 2005. I have VB.NET Standard, and I'm able to redist just fine. The difference between Standard, Professional and Enterprise is the amount of tools & bells & whistles you get.

    But I could be wrong about that.... it's been know to happen.

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

  10. #50
    Addicted Member
    Join Date
    Jul 2005
    Posts
    154

    Re: Tips for moving from VB6 to VB.NET

    Is there any related E-Book for .Net programming for download?

  11. #51
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727

    Re: Tips for moving from VB6 to VB.NET

    dear all,

    i am an experienced vb6 programmer and have just finished a wonderful and complex activex in VB6 (that's about right ).

    just found out i need to port it in .NET for various reasons, however i have a very very little experience of .NET. am i correct in assuming that i just SHOULDN'T use the convertion wizard? and go through every function to re-write it?

    ...

    thank you,

    wc.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

  12. #52
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Tips for moving from VB6 to VB.NET

    It's been the common advise and I would advise it to you also, don't use the Upgrade wizard. It would be better to completely re-write it from ground up...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  13. #53
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727

    Re: Tips for moving from VB6 to VB.NET

    damn...

    hopefully this won't take too much. i really do not know where to start.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

  14. #54
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Tips for moving from VB6 to VB.NET

    MrPolite was Polite enough to find a link to some FREE books Microsoft is offering (they are for download in PDF format) that will help move from VB6 to VB.NET and also help learning .NET 2005

    you can find the books Here

  15. #55
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    I'm not polite! stop insulting me
    just a note, that link has a book for vb2005 too if you want to start with that right off
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  16. #56
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Some video show/tutorials you might find interesting

    Some video show/tutorials you might find interesting:

    My personal favourite: VBTV - too bad MS has stopped webcasting it.

    The .NET show - Make sure to check the old archives. They have very good discussion on the framework, CLR, VB.NET etc. (Though the archived videos are old. They are still interesting.)

    VB.NET Express Absolute Beginner's Video Series

    Check http://www.learnvisualstudio.net/ for some free videos.

    VB.NET for Beginners to Programming Workbook and Videos

    IDE Proficiency Series for Visual Studio.NET 2003

    C# for Beginners to Programming Workbook and Videos

    DotNetRocks (audio only)

    MSDN Channel 9 (Not very beginner friendly, but still interesting)

    MSDN TV (Not very beginner friendly, but still interesting)
    Last edited by RobDog888; Jan 8th, 2006 at 09:22 AM.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  17. #57
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    iPrank, a few of those links are already on the other sticky thread - VB.NET hints you might not know [updated 11-04-2005]. You may want to chack it out. But you do have some informative links too.

    Maybe it would be better for some of the links to go in that thread?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  18. #58
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    Quote Originally Posted by RobDog888
    iPrank, a few of those links are already on the other sticky thread - VB.NET hints you might not know [updated 11-04-2005]. You may want to chack it out. But you do have some informative links too.

    Maybe it would be better for some of the links to go in that thread?
    Sorry. I didn't checked that thread. I'm just starting .NET, thought that thread may be for exprrienced .NET guys.

    Will you please move/moderate the links. (that thread is closed/locked I guess.)
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  19. #59
    Addicted Member
    Join Date
    Nov 2005
    Posts
    185

    Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    Hi,

    I would like to ask...VB 6 is structured language right? How about Visual Basic 2005..???...Because I have Visual Studio 2005 and Visual Studio.NET 2003, which both are object oriented language....so, in short, VB 2005 and VB 6 has different coding style...is that correct?

  20. #60
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    I thought it would be worthwhile to post a link to the conversion chart I made.

    Thread

    Visual Basic 6 to .NET Function Equivalents

    I hope people find this useful.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  21. #61
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    Quote Originally Posted by tr333
    i found this article on the MSDN website:

    http://msdn.microsoft.com/library/de...ngtodotnet.asp

    i thought it might be useful for anyone moving from vb6 to .NET or anyone who wants to learn about the basics of .NET


    EDIT: This free book from microsoft also gives assistance for moving from vb6 to .NET
    brilliant link, just what I needed

    VB.NET <3
    Chris

  22. #62
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Exclamation Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    Is there a equivalent to objptr function in VB 2005.

    I'm converting code from vb 6 to vb 2005.

    gcTimerObjects.Add(ObjPtr(Me), mnTimerID) - converted vb 6 code.

    ObjPtr is deprecated and it can no more be used. So is there any substitute for it in VB 2005.

    how can we find the address of a object??

    Thanks,
    Sugan

  23. #63
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    Quote Originally Posted by vsugan_work
    Is there a equivalent to objptr function in VB 2005.

    I'm converting code from vb 6 to vb 2005.

    gcTimerObjects.Add(ObjPtr(Me), mnTimerID) - converted vb 6 code.

    ObjPtr is deprecated and it can no more be used. So is there any substitute for it in VB 2005.

    how can we find the address of a object??

    Thanks,
    Sugan
    Did you try just removing it and seeing if it works?

  24. #64
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Exclamation Re: Tips for moving from VB6 to VB.NET [new info added 10-19-05]

    Quote Originally Posted by kleinma
    Did you try just removing it and seeing if it works?
    If i remove the ObjPtr function , the following is the error i get.

    "Value of type 'vbuSoftButton.objTimer' cannot be converted to 'Integer'."

    The function add requires the first argument as integer, which is the address of the object that requires to be passed. So if the objptr function is removed, "Me" refers to a objTimer which cannot be converted to integer.

    So pls help how to proceed with this issue.

    Thanks,
    Sugan

Page 2 of 2 FirstFirst 12

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