hi friends...
i want to link a buuton to an html page. i knx there is its control in the toolbox bt i don't know how to use it.. need help plzz

Hi
In vb.net you having a tool named Link Label.
Use the link label to link a HTML Page to your form.

Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal_
e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)_
Handles LinkLabel1.LinkClicked
System.Diagnostics.Process.Start("www.startvbdotnet.com")
'using the start method of system.diagnostics.process class
'process class gives access to local and remote processes
End Sub

Give your target like("c:\...") inside the System.Diagnostics.Process.Start() method.

For further clarification see the following link
http://www.startvbdotnet.com/controls/label.aspx

I can't go smarter than this (I'm no expert), but following worked for me:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Shell("C:\Program Files\Internet Explorer\iexplore.exe http://www.yourwebsite.com")

    End Sub

Change "iexplore.exe" and its directory to a browser of your choice.

Or else, you can do what "suganzeni" suggested but inside your button code. e.g.:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        System.Diagnostics.Process.Start("http://www.yourwebsite.com")

    End Sub

how to link buttons using the visual studio 2005.. and to another form... tnx

Say you have form called "Settings" (Settings.vb). Wouldn't double-clicking button and typing following work?:

Settings.Show()

Leo

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.