Links

  • Thread starter Thread starter DAL
  • Start date Start date
D

DAL

How do I link a command button to a program on my computer (ie. Outlook
Express), so when I click the button the program launches. Thanks in
advance, DAL.
 
DAL said:
How do I link a command button to a program on my computer (ie. Outlook
Express), so when I click the button the program launches.

\\\
System.Diagnostics.Process.Start("notepad")
///
 
try

Dim proc As New Process
Dim SI As New ProcessStartInfo("Notepad.exe")

proc.StartInfo = SI
proc.Start()
 
Hai,
You can use Microsoft.VisualBasic.Shell to execute any program with a
command button.

Public Function Shell(ByVal Pathname As String, Optional ByVal Style As
Microsoft.VisualBasic.AppWinStyle = 2, Optional ByVal Wait As Boolean =
False, Optional ByVal Timeout As Integer = -1) As Integer
Member of: Microsoft.VisualBasic.Interaction

Summary:
Runs an executable program and returns an integer containing the
program's process ID if it is still running.

I hope it helps.
 
Back
Top