Results 1 to 2 of 2

Thread: Opening an Application - will I ever learn?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    I want to open a game stored on C\:game folder\game.ext (for the sake of argument) when a user clicks on a control.... can anyone tell me how??

  2. #2
    Lively Member
    Join Date
    Feb 2000
    Posts
    81

    Post

    open a new form add a button and add the below to the button run the program andit should work

    [code]

    Dim shellProgram As String
    Dim res
    shellProgram = “c:\put file name in here"
    res = Shell(shellProgram,vbNormalFocus)
    End Sub

    substitute in the " c:\put file name here" for the exe file that you want to run the game file
    good luck


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width