im making a server launcher and i need to know how to make a button with a url behind it
for example a button that says vote and when you click it it sends you to my server voting link!
msn- [email protected]
im making a server launcher and i need to know how to make a button with a url behind it
for example a button that says vote and when you click it it sends you to my server voting link!
msn- [email protected]
That will open the default browser, to whatever URL you pass it. (Should be simple enough to change)Code:Imports System.Diagnostics Public Shared Sub GoToURL(ByVal url As String) Process.Start(url) End Sub
Of course, there's more fun ways to do it, but that's by far the easiest. (Not guaranteed to work on all machines however)
this isnt working for me
Works fine for me.
Code:Imports System.Diagnostics Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Process.Start("www.google.com") End Sub End Class
thats too long a code
use :
this will take you to MMOwned.comSystem.Diagnostics.Process.Start("http://mmowned.com/")
Why fill up a signature?
How is it too long of a code?
It's just a button event handler that does just the same as you did.
k... the easiest way to do this (imo), is a mix between the things above.
Create a button, call it "vote" or whatever you want, double click, and write
process.start("http://We're no strangers to looooveeee, you know the rules, and so do I....com")
This is basicly what Apoc said, just without the confusing stuff around, which
the tools can do on itself, so you don't have to bother about it.
Last edited by warsheep; 06-29-2008 at 05:22 AM.
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
Is there anyway you can modify someone elses program when you know they used VB and ofcourse still keep the Copyright??
Last edited by Darksid; 06-29-2008 at 11:30 AM.
Not really, that's actually exactly what he was looking for in his first post. (Should read it if you haven't)
Uhm, I don't get the thing between Apoc and Emilox, what Apoc said is
process.run("http://url.com")
while what Emiloz said was
System.Diagnostics.Process.Start("http://mmowned.com/")
Apoc just took with what the tool originaly creates,
so Emiloz, what you said requires more writing then what Apoc said.
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
warsheep, Apoc had an Imports System.Diagnostics at the start.
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
No, you need to make the import or it can't start a process.