Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[VB] Button click to link

Custom Title Activated
Member
Joined
Mar 28, 2006
Messages
2,383
Reaction score
0
In VB I have a button, and I want it where after you click it, it will open up a URL.

I've google'd and can't seem to find it, so if someone could tell me how/what the code is that'd be great.
 
Divine Celestial
Member
Joined
Jul 7, 2004
Messages
853
Reaction score
5
Shell execute. Not sure if it can be done easily in VB though.
 
Elite Diviner
Joined
Oct 10, 2005
Messages
453
Reaction score
0
You can do easy way and make a form with a web browser and when u click button form pops up with web browser....
then u just make it
browser.navigate <website url>
takes like 5 min.... look for a vb browser to learn how to doit.
 
Initiate Mage
Joined
Jan 27, 2005
Messages
30
Reaction score
0
Like Username1 said ShellExecute. Since your using Visual Basic you'll have to declare it first so here,


For Visual Basic .NET

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Int32, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Int32) As Int32


For Visual Basic

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
 
Master Summoner
Joined
Dec 28, 2005
Messages
544
Reaction score
0
Code:
Process.Start("iexplorer" ,"url_here"
And you go to this url ^^
 
Back
Top