Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 21st Feb 2012, 03:46 AM   #1
HyperActive Warrior
War Room Member
 
kamalmix's Avatar
 
Join Date: 2011
Location: Internet :)
Posts: 494
Thanks: 68
Thanked 17 Times in 13 Posts
Default
Visual Basic
Share on: 
fb share twitter share gplus share more share

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?
kamalmix is offline  
Unread 21st Feb 2012, 03:54 AM   #2
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 58
Thanks: 3
Thanked 8 Times in 6 Posts
Default
Re: Visual Basic
Share on: 
fb share twitter share gplus share more share

Process.Start("http://google.com")

windfinder is offline  
Unread 21st Feb 2012, 04:34 AM   #3
HyperActive Warrior
War Room Member
 
kamalmix's Avatar
 
Join Date: 2011
Location: Internet :)
Posts: 494
Thanks: 68
Thanked 17 Times in 13 Posts
Default
Re: Visual Basic
Share on: 
fb share twitter share gplus share more share

Where to put it?
kamalmix is offline  
Unread 21st Feb 2012, 10:39 AM   #4
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: 2006
Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
Default
Re: Visual Basic
Share on: 
fb share twitter share gplus share more share

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


Brandon Tanner is offline  
Closed Thread


Bookmarks

Tags
basic, visual


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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