Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Program Execution from desktop
 

Program Execution from desktop

Hi,

Im trying to write a program in VB 2005 that can be executed from the desktop/start menu like any other application. My experience with VB is from writing macros in excel so i never had to worry about executing a program outside Excel.

Could anyone please tell me how to execute my program via a link in the start menu? It would be much appreciated.

Cheers

Aaron

AaRoN_P  Wednesday, February 08, 2006 7:53 AM

There's nothing special to it - as long as the framework is installed, a console app or windows app built with vb will run like any normal executable - you just need to create a shortcut to it from where you want to start it.

So, for a quick and dirty example, create a windows application, build it. Using windows explorer, find your solution's\bin\release subfolder, find the executable you just created, right click it and drag it to the desktop, and select create shortcut when you drop the file - now you can start it by double clicking on it on the desktop.

Basically, for simple programs, as long as the right frameworks is installed and all the non gac'd dlls the executable references are distributed with the executable (assuming we're only dealing with managed code, and nothing needs registration), you should be able to start your exec's as you would any other executable in windows.

This seems like too simple a question, am I missing something? :)

Alex Moura  Thursday, February 09, 2006 12:28 AM

There's nothing special to it - as long as the framework is installed, a console app or windows app built with vb will run like any normal executable - you just need to create a shortcut to it from where you want to start it.

So, for a quick and dirty example, create a windows application, build it. Using windows explorer, find your solution's\bin\release subfolder, find the executable you just created, right click it and drag it to the desktop, and select create shortcut when you drop the file - now you can start it by double clicking on it on the desktop.

Basically, for simple programs, as long as the right frameworks is installed and all the non gac'd dlls the executable references are distributed with the executable (assuming we're only dealing with managed code, and nothing needs registration), you should be able to start your exec's as you would any other executable in windows.

This seems like too simple a question, am I missing something? :)

Alex Moura  Thursday, February 09, 2006 12:28 AM

Lol.. no your not missing anything. Im just a novice.

Thx for the post. I since worked out how to do it using the publish function in VB.

Thx again.

AaRoN_P  Monday, February 13, 2006 11:15 AM
No prob :)
Alex Moura  Monday, February 13, 2006 7:07 PM

You can use google to search for other answers

Custom Search

More Threads

• sequence of execution of assembly[in code]
• Remove Close [X] button
• Import DLL
• Managing Data in a Database.
• Printing items from a listview box isnt working?
• how to load more than one(dependent) dlls using DLL import,
• Invisible Buttons
• search for exact word
• Control Arrays with Labels, Textboxes, etc...
• Highlighted text treated like user input