Won't save as .EXE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobsac
    New Member
    • Jul 2007
    • 1

    Won't save as .EXE

    Hey folks, i've just started with VB, I made a fairly okay loading screen for my new program i'm making but I have a problem IT WON'T LET ME SAVE AS .EXE, when I go to file it comes up with the option but it is grey and does not let me click it, can anyone help please? it would be appreciated.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    What version of VB is this?

    If it's VB 2005 Express Edition, which is a free download, maybe (I don't know) this is one of the things which is disabled to make it the "express" edition.

    Comment

    • vadrian
      New Member
      • Jul 2007
      • 6

      #3
      dont worry i have the same problem with my vb6 version..

      i have a large programe and it freeze's...
      i would like to know why myself...
      the file is only 450 kb and i cant put it into *.exe file... * = file name.

      Is there an update on this program or do i need to re-re-re-re-re-istall it??

      lol...

      Thanx for the help.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by vadrian
        dont worry i have the same problem with my vb6 version..

        i have a large programe and it freeze's...
        i would like to know why myself...
        the file is only 450 kb and i cant put it into *.exe file... * = file name.

        Is there an update on this program or do i need to re-re-re-re-re-istall it??
        What file is 450KB? And at what point do things freeze?

        Comment

        • Mague
          New Member
          • May 2007
          • 137

          #5
          If you are using Visual Studio 2005 you dont need to put it into an exe file. When it debugs it has to save the file somewhere so it can run. (Well i think it has to) So i found out where it saves it to.

          If you open the project file.

          You will now see a folder with the same name as your project and a .sln file the same name as you project. Open the folder.

          You will find a folder called bin then another folder called debug

          open debug.

          You will then see yourproject.exe you can copy and paste it or watever.

          This is the path location for my computer

          C:\Documents and Settings\Owner\ My Documents\Visua l Studio 2005\Projects\Y ourproject\Your project\bin\Deb ug\YourProject. exe


          Hope this helps

          Mague

          ps Killer i decided to start chiping in for all the help u gave me

          Comment

          • vadrian
            New Member
            • Jul 2007
            • 6

            #6
            Originally posted by Killer42
            What file is 450KB? And at what point do things freeze?

            My full project is about 420 k... ...

            TExt document, Visual Basic Project, Visual Basic Form Binary file, Visual Basic Form fil and another Text document, they are equal to a total of 400 k..

            but it's mostly the Binary file that is 398 kb...

            It freeze's when at the Compiling section... Everything freeze's... Wont move and wont do a thing..

            BTW it's Visual Basic 6 not Visual Studio 2005 just to reply at the same time to Mague, thanx anyways....


            Thanx, Vad

            Comment

            • vadrian
              New Member
              • Jul 2007
              • 6

              #7
              Just to add some information here, i'm trying to crop some lines from my program ... It might work to compress it...
              At least i hope.

              Comment

              • cyberdaemon
                New Member
                • Jul 2007
                • 38

                #8
                In VB6, wow that brings back memories, you don't SAVE AS .EXE as long as you have the appropriate version (i.e. not Learning Edition) Click File -> Make EXE File. Then If I remeber correctly it promtps you for a Name and path for your new .EXE file

                In Visual Studio versions that use .NET, It was correctly stated where the .EXE file is in the folder where your project is saved. However there is not just one, there are two!!! one in the debug folder, adn one in the release folder, both are in bin folder. I do believe you have to compile in borth DEBUG and RELEASE to get the both EXE's created. For those of us who are not familiar with changeing the compile type it is done click Build -> Configuration Manager then a dialog will appear and simply change the Active Solution Configuration.

                Hope this information is helpful. Happy Coding!

                Comment

                • vadrian
                  New Member
                  • Jul 2007
                  • 6

                  #9
                  Originally posted by cyberdaemon
                  In VB6, wow that brings back memories, you don't SAVE AS .EXE as long as you have the appropriate version (i.e. not Learning Edition) Click File -> Make EXE File. Then If I remeber correctly it promtps you for a Name and path for your new .EXE file

                  In Visual Studio versions that use .NET, It was correctly stated where the .EXE file is in the folder where your project is saved. However there is not just one, there are two!!! one in the debug folder, adn one in the release folder, both are in bin folder. I do believe you have to compile in borth DEBUG and RELEASE to get the both EXE's created. For those of us who are not familiar with changeing the compile type it is done click Build -> Configuration Manager then a dialog will appear and simply change the Active Solution Configuration.

                  Hope this information is helpful. Happy Coding!
                  I know it's an old version of VB but the thing is i'm an old person... I started learning Basic with QBasic in Dos... If you know what DOS is..lol.. Just teasing you...

                  Thank you, i found out why i had problem compiling my file into an executable file... I had to many lines and i just removed about 500 lines from my program into 3 .... lol... Been a while since i used VB..... The first version of VB i used was VB4 when i started my Diploma in 1993.... So that should tell you how old i am right now...

                  Anyways, thank you, your information did help me at the same time...
                  I worked toooooooo hard for those 500 lines but with some other help files on this site, I croped 500 lines.. That was too cool to remember how to do it...

                  Now here is another problem i have.. Or should i create a new message??

                  Anyways..

                  ---------------------------------------------------------
                  Randomize Timer

                  For i = 1 To 100 Step 1

                  a = Rnd() * 10 + 10
                  Me.Controls("te xt" & CStr(i)).Text = Me.Controls("te xt" & CStr(a)).Text

                  Next i

                  -----------------------------------------------------

                  I would like the random to be into a new form.. Exemple.. Form2...

                  I tried this

                  Randomize Timer

                  For i = 1 To 100 Step 1

                  a = Rnd() * 10 + 10
                  Me.Controls("te xt" & CStr(i)).Text = form2.Me.Controls("te xt" & CStr(a)).Text

                  But it didn't work, am i putting it at the right place or should i place it somewhere else??

                  Thank you for answering.

                  Vad!

                  Comment

                  Working...