Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Visual Basic (https://www.warriorforum.com/programming/545830-visual-basic.html)

kamalmix 21st February 2012 03:46 AM

Visual Basic
 
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?

windfinder 21st February 2012 03:54 AM

Re: Visual Basic
 
Process.Start("http://google.com")

kamalmix 21st February 2012 04:34 AM

Re: Visual Basic
 
Where to put it?

Brandon Tanner 21st February 2012 10:39 AM

Re: Visual Basic
 
Quote:

Originally Posted by kamalmix (Post 5668649)
Where to put it?

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


All times are GMT -6. The time now is 09:34 PM.