| | #1 |
| HyperActive Warrior War Room Member Join Date: 2011 Location: Internet :)
Posts: 494
Thanks: 68
Thanked 17 Times in 13 Posts
|
Hello. I made a simple software in Visual Basic and I want it to make some actions. For example, when I click on "submit" button it will redirect to URL and the address will be like this http://google.com/myquery How to do it? |
| |
| | #2 |
| Active Warrior War Room Member Join Date: 2009
Posts: 58
Thanks: 3
Thanked 8 Times in 6 Posts
|
Process.Start("http://google.com")
|
| | |
| |
| | #3 |
| HyperActive Warrior War Room Member Join Date: 2011 Location: Internet :)
Posts: 494
Thanks: 68
Thanked 17 Times in 13 Posts
|
Where to put it?
|
| |
| | #4 |
| Advanced Warrior War Room Member Join Date: 2006 Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
|
In the Design view, double click on the button, and it will bring up the Code view. Assuming your button is named 'button1', then here is the code you need... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Process.Start("http://google.com/myquery") End Sub |
| | |
| |
|
| Bookmarks |
| Tags |
| basic, visual |
| |