Help

Posts 1–8 of 8 · Page 1 of 1
Help
Hello vb masters im new to vb and i need to know when i make a button i want it to go to a link in internet explorer or something how can i please help
Quote Originally Posted by Hahne View Post
Hello vb masters im new to vb and i need to know when i make a button i want it to go to a link in internet explorer or something how can i please help
Welcome to vb section.

To open Internet explorer via button, double click the button on your form. Code window will open. Write the following code in the button's click event:

Code:
System.Diagnostics.Process.start("http://www.mpgh.net/forum/33-visual-basics/")
If you want to open windows explorer then use the following line:

Code:
Shell ("explorer")
Quote Originally Posted by Hassan View Post
Welcome to vb section.

To open Internet explorer via button, double click the button on your form. Code window will open. Write the following code in the button's click event:

Code:
System.Diagnostics.Process.start("http://www.mpgh.net/forum/33-visual-basics/")
If you want to open windows explorer then use the following line:

Code:
Shell ("explorer")
A bit shorter and also working without any imports:

Code:
Process.start("link")
Also, do not use shell.

Code:
Dim proc As Process = New Process()
        proc.StartInfo.FileName = "explorer.exe"
        proc.StartInfo.Arguments = "" 'any arguments...
        proc.Start()
Quote Originally Posted by Blubb1337 View Post
A bit shorter and also working without any imports:

Code:
Process.start("link")
Also, do not use shell.

Code:
Dim proc As Process = New Process()
        proc.StartInfo.FileName = "explorer.exe"
        proc.StartInfo.Arguments = "" 'any arguments...
        proc.Start()
The same can be done using shell:

Code:
Shell ("explorer.exe /arguments")
Thanks will test when i have downloaded
Though, it is not recommended to use shell anymore. Just live with it =P
Quote Originally Posted by Blubb1337 View Post
Though, it is not recommended to use shell anymore. Just live with it =P
You forcing it ?? :P
SPAMTHREAD.
And yes, any of the above should work.
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?