Results 1 to 9 of 9

Thread: Visual Basic 2005 to .exe?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    5

    Visual Basic 2005 to .exe?

    I am new to Visual Basic 2005, i have to express edition. I was wondering if there was a similar option to turn your program into 1 .exe like in VB 6.0. It was in the file menu, it was something like export to exe. I would like to know if there is a similar way in VB 2005. I tried with publish but you have to install it for it to work. I want just a plain old .exe.

    thanks,

    vidervidenda.blogspot.com

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: Visual Basic 2005 to .exe?

    Your app is made into an EXE everytime you compile it. It's in the Debug/Bin directory of your solution by default.

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Visual Basic 2005 to .exe?

    Look in the BIN folder. If it's the same as 2003, then it gets compiled before your run the app, and it gets put in the BIN folder. You have to compile to RELEASE version before you can transport it to another box though.

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    5

    Re: Visual Basic 2005 to .exe?

    im sorry im not sure i know what u mean, could you be more specific. how do you compile. i have very little knowledge to visual basic, i would like to try and learn it more.

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Visual Basic 2005 to .exe?

    Click on SAVE PROJECT AS: and it will point you to the folder that it was saved in. Open that, and you will find a subfolder called BIN (amonst others). The project is saved with the same name in that folder.

  6. #6
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Visual Basic 2005 to .exe?

    when you run your program it is automatically compiled... in the bin directory.. in an exe..

    as far as installation goes, just a matter of copying the exe to the target computer, if the target computer has the .NET framework installed, it should run (as long as you didn't have a reference to an outside dll that the framework doesnt have, in that case, you need to create a setup project)

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Visual Basic 2005 to .exe?

    There are two properties. Compile to release mode or compile to debug mode. You need release mode to transfer the app, I think. You can also start a new project for the Setup and Deployment (I think) type of app. You just add your project, and then compile a setup.exe

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

    Re: Visual Basic 2005 to .exe?

    In VB 2005 Express you compile a release build, which is what you want if you want to run your app on other machines, you select Build->Build Solution from the main menu. The compiled executable file will then be in the "Visual Studio\Projects\<SolutionName>\<ProjectName>\bin\Release" subfolder of your MyDocuments folder. If you had a previous version of Visual Studio installed then the "Visual Studio" folder may be called "Visual Studio 2005".
    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

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

    Re: Visual Basic 2005 to .exe?

    Quote Originally Posted by baker89
    im sorry im not sure i know what u mean, could you be more specific. how do you compile. i have very little knowledge to visual basic, i would like to try and learn it more.
    Press the play button or Build it.

    Also, please purchase a VB.Net book.

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