Links

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DAL

    #1

    Links

    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.


  • Herfried K. Wagner [MVP]

    #2
    Re: Links

    "DAL" <dalmailbox-mail@yahoo.com> schrieb:[color=blue]
    > 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.[/color]

    \\\
    System.Diagnost ics.Process.Sta rt("notepad")
    ///

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • iwdu15

      #3
      RE: Links

      try

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

      proc.StartInfo = SI
      proc.Start()

      --
      -iwdu15

      Comment

      • Mike

        #4
        Re: Links

        Hai,
        You can use Microsoft.Visua lBasic.Shell to execute any program with a
        command button.

        Public Function Shell(ByVal Pathname As String, Optional ByVal Style As
        Microsoft.Visua lBasic.AppWinSt yle = 2, Optional ByVal Wait As Boolean =
        False, Optional ByVal Timeout As Integer = -1) As Integer
        Member of: Microsoft.Visua lBasic.Interact ion

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

        I hope it helps.

        Comment

        Working...