Results 1 to 10 of 10

Thread: quick launch

  1. #1

    Thread Starter
    Member nlowdon's Avatar
    Join Date
    Feb 2007
    Location
    Scotland
    Posts
    55

    Question quick launch

    Hi,
    I'm in my first year of vb (and programming !) and was wondering if there's a way that vb programs (i.e my finished project) can be run from a desktop shortcut rather than the usual way - launching vb, opening the project etc etc....

    Thanks in advance

    Neil

  2. #2
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: quick launch

    Compile and run the exe

  3. #3

    Thread Starter
    Member nlowdon's Avatar
    Join Date
    Feb 2007
    Location
    Scotland
    Posts
    55

    Re: quick launch

    ok,
    i appologise in advance for lack of knowledge - but i do that how ??

    Neil

  4. #4
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: quick launch

    In the file menu Click on Make YourProjectName.exe

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

    Re: quick launch

    Open your project, Select File Menu and click Make filename.exe option. This will compile your VBP project into an EXE file that can be launched without the Visual Studio IDE.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

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

    Re: quick launch

    What version of VB are you using?

    If you have the "Learners Edition", you probably won't be able to compile your program.

  7. #7

    Thread Starter
    Member nlowdon's Avatar
    Join Date
    Feb 2007
    Location
    Scotland
    Posts
    55

    Re: quick launch

    Hey Folks !

    Well i tried what was posted earlier- and i'm now getting an error message when trying to create the exe.
    The error i'm getting says - 'Method or data member not found'

    The following code from a module is then displayed. The 'Load' is highlighted.

    Code:
    Option Explicit
    
    
    Public Sub Main()
    
        frmSplash.Show
        frmMainMenu.Load
        frmSplash.Hide
        frmMainMenu.Show
        
    End Sub

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

    Re: quick launch

    It should be
    Code:
    Load frmMainMenu

  9. #9

    Thread Starter
    Member nlowdon's Avatar
    Join Date
    Feb 2007
    Location
    Scotland
    Posts
    55

    Re: quick launch

    Cheers Hack,
    That sorted out the compiling problem - it seems to be running through the process no problem now.
    What's supposed to happen next though ? LOL
    It runs through that then nothing seems to happen ?
    Where does the shortcut end up ? Or what should i do next ?

    Neil

  10. #10
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: quick launch

    Have you created a shortcut to the exe on your desktop, and then run that ?

    Are you anywhere near Gourock (which is down the Clyde from Glasgow) ?

    Rob
    Rob C

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