3 replies
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?
#basic #visual
  • Profile picture of the author windfinder
    Process.Start("http://google.com")
    {{ DiscussionBoard.errors[5668465].message }}
  • Profile picture of the author kamalmix
    Where to put it?
    {{ DiscussionBoard.errors[5668649].message }}
    • Profile picture of the author Brandon Tanner
      Originally Posted by kamalmix View Post

      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
      Signature

      {{ DiscussionBoard.errors[5670704].message }}

Trending Topics