HOW TO CALL ANOTHER PROGRAM FROM VISUAL BASIC 2010
DESCRIPTION
This free Visual Basic 2010 VB2010 code is a simple source code example of
calling another program
from Visual
Basic 2010 (VB2010).
|
THE SETUP
Add a button (Button1) to your form. This VB2010 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 2010 VB 2010 SOURCE CODE
Copy and Paste this Visual Basic 2010 code wherever you need it to call another
program:
'.....Free Source Code from www.freevb2010code.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
|
|