PDA

Click to See Complete Forum and Search --> : Help Needed To Link A Command Button to a Windows Program


Dec 11th, 1999, 04:49 AM
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`~

christophe
Dec 11th, 1999, 06:35 AM
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.