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
|
|