Results 1 to 2 of 2

Thread: Help Needed To Link A Command Button to a Windows Program

  1. #1
    Guest

    Post

    I just started using Visual Basic and my first program is a Startup Program the will organize your programs. I have a main page with different groups (games,applications, syatem tools, etc.). I have the linking to different forms working perfectly, but when it comes to connecting a command button to a program like Windows Explorer, I cannot figure the code out to do so. Can someone help me by typing a simple code to enter?

    ~`Rage`~

  2. #2
    Lively Member
    Join Date
    Feb 1999
    Location
    France
    Posts
    90

    Post


    Private Sub Command1_Click()
    Shell "c:\windows\explorer.exe"
    End Sub

    This code relies on Windows Explorer being in the above folder. You can get it to find it, no matter where it is on your computer, but I'm not sure how.

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