Results 1 to 16 of 16

Thread: How to convert vb.net 2003 code to 2005

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    How to convert vb.net 2003 code to 2005

    I try to use the one they have in vs 2005 but it won't convert it because i have a source code for a shutdown program but can't convet it does anybody know how?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to convert vb.net 2003 code to 2005

    99.99% of all VB.NET 2003 code will work without change in VB 2005. If you have something that won't then you're going to have to show us what it is. Also, the IDE would tell what the errors are.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: How to convert vb.net 2003 code to 2005

    What? Very little breaking changes were done in VB 2005 compared to 2003. You should be able to open the project, convert it (it'll ask) and compile fixing any issues it lists.

    What's the problem? Could you post some code or screenshots or a more detail issue?

    EDIT: Bah, jmcilhinney beating me by a few seconds
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    Re: How to convert vb.net 2003 code to 2005


  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to convert vb.net 2003 code to 2005

    I just downloaded all three of those projects and they all converted, opened and ran in 2005 without issue.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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

    Re: How to convert vb.net 2003 code to 2005

    Are you getting an error message or anything?
    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

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    Re: How to convert vb.net 2003 code to 2005

    ok thanks for the quick responses i'll take screen shots right now to show exactly what my problem is

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    Re: How to convert vb.net 2003 code to 2005

    ok here's what i'm getting on my end




  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to convert vb.net 2003 code to 2005

    All that image does is confirm that the conversion failed, but it doesn't give us any information as to why. You have a conversion report there. What does it say?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: How to convert vb.net 2003 code to 2005

    do you have .net2.0 installed?

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    Re: How to convert vb.net 2003 code to 2005

    yea i have .net 2.0 but don't have 1.1 or 1.0 could that be my problem but if i installed older version won't that stop 2.0 from working right? and all i get in the log is this

    Time of Conversion: Wednesday, June 28, 2006 2:30 AM


    Solution: ShutdownTimer
    Filename Status Errors Warnings
    ShutdownTimer.sln No Conversion Required 0 0
    Conversion Issues - ShutdownTimer.sln:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer.sln
    The solution file does not require conversion.

    ShutdownTimer.suo 0 0
    Conversion Issues - ShutdownTimer.suo:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer.suo

    2 files Converted: 0
    Not converted 2 0 0

    Project: ShutdownTimer
    Filename Status Errors Warnings
    ShutdownTimer\AssemblyInfo.vb 0 0
    Conversion Issues - ShutdownTimer\AssemblyInfo.vb:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\AssemblyInfo.vb

    ShutdownTimer\close.bmp 0 0
    Conversion Issues - ShutdownTimer\close.bmp:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\close.bmp

    ShutdownTimer\Main.resx 0 0
    Conversion Issues - ShutdownTimer\Main.resx:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\Main.resx

    ShutdownTimer\Main.vb 0 0
    Conversion Issues - ShutdownTimer\Main.vb:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\Main.vb

    ShutdownTimer\popup.bmp 0 0
    Conversion Issues - ShutdownTimer\popup.bmp:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\popup.bmp

    ShutdownTimer\ShutdownTimer.vbproj Converted 0 0
    Conversion Issues - ShutdownTimer\ShutdownTimer.vbproj:
    Project file successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\ShutdownTimer.vbproj
    Project converted successfully

    ShutdownTimer\ShutdownTimer.vbproj.user 0 0
    Conversion Issues - ShutdownTimer\ShutdownTimer.vbproj.user:
    Project user file successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\ShutdownTimer.vbproj.user

    ShutdownTimer\skin.bmp 0 0
    Conversion Issues - ShutdownTimer\skin.bmp:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\skin.bmp

    ShutdownTimer\TaskBarNotifier.vb 0 0
    Conversion Issues - ShutdownTimer\TaskBarNotifier.vb:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\TaskBarNotifier.vb

    ShutdownTimer\WindowsController.vb 0 0
    Conversion Issues - ShutdownTimer\WindowsController.vb:
    File successfully backed up as C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\Backup2\ShutdownTimer\WindowsController.vb

    10 files Converted: 1
    Not converted 9 0 0


    Conversion Settings
    Solution File: C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\ShutdownTimer.sln
    User Options File: C:\Documents and Settings\Victor\My Documents\Downloads\ShutdownTimer_src\ShutdownTimer.suo
    Log Number: 3

  12. #12
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: How to convert vb.net 2003 code to 2005

    No, both 1.1 and 2.0 can be installed on the saem machine without any problems (as far as i know) I have both the frameworks installed and have both VS 2003 & 2005 installed. Till now I have had no problems at all.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    Re: How to convert vb.net 2003 code to 2005

    ok thanks i'll install 1.1 then and hopefully that will fix my problem

  14. #14
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to convert vb.net 2003 code to 2005

    That log doesn't really tell us much either. Thanks Microsoft. Anyway, I can't really tell you why I can convert them, using VB and C# Express no less, and you can't, but here's those three projects after my conversion so you should be able to use them at least.
    Last edited by jmcilhinney; Feb 9th, 2008 at 03:49 AM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    Re: How to convert vb.net 2003 code to 2005

    ok thx alot jmcilhinney and i'm gonna let .net framework 1.1 and 1.1 sp1 download tonight and i'll install them and i'll post back if it worked or not and hopefully it'll help somebody else sometime down the road

  16. #16

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    115

    Re: How to convert vb.net 2003 code to 2005

    well i installed 1.1 and 1.1 sp1 od .net framework and one of them now opens up which is one of the c# source codes i might need 1.0 of .net framework to so i'll try that next

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