Free Visual Basic 2008 Source Code VB2008
How to call or shell to another program from Visual Basic 2008 VB2008








HOW TO CALL ANOTHER PROGRAM FROM VISUAL BASIC 2008


DESCRIPTION

This free Visual Basic 2008 VB2008 code is a simple source code example of calling another program from Visual Basic 2008.


THE SETUP

Add a button (Button1) to your form. This routine calls the Windows notepad. Change it to call any program you like. (Any suitable method can be used to call the routine, this is just an example)


THE FREE VISUAL BASIC 2008 VB 2008 SOURCE CODE

Copy and Paste this Visual Basic 2008 code wherever you need it to call another program:

'.....Free Source Code from www.freevisualbasic2008sourcecode.com
Double click your new button and Write the following Sub Routine into your Form 1 so that it can be called from anywhere else in your program.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("C:\Windows\notepad.exe", AppWinStyle.NormalFocus)
End Sub




Home to FreeVisualBasic2008SourceCode.com
How to write to a CSV file
How to write to a TEXT file
How to read from a CSV file
How to read from a TEXT file
How to find a User Name
How to fill a ListView
How to write a ListView data table to a CSV file
How to call another program
How to copy and paste to the Windows Clipboard
How to concatenate (join) text
How to sort and Array


Copyright SGDesigns (c)2010

Our aim is to provide simple concise and easy to follow Free Visual Basic 2008 Source Code for the casual programmer in Visual Basic 2008 VB2008. We hope you find the code example uselful. This code shows a simple method on how to call another program from Visual Basic 2008 (VB 2008).





counter