Home All Groups Group Topic Archive Search About

How do you put a hyperlinked text on a blank form

Author
30 Mar 2005 8:01 AM
George Medlock
How do you put a hyperlinked text on a blank form. Just a plain form

Thanks

Author
30 Mar 2005 10:08 AM
Crouchie1998
Add a linkLabel control from your toolbox.

in the click event:

System.Diagnostics.Process.Start(mailto:nospam@nospam.com?subject=Example
Hyperlink Test&body=Dear Crouchie,)

and then type

e.Link.Visited = True

Otherwise, there is a simple example of how to create multiple hyperlinks
from a single control in the VB.NET MSDN built in documentation

I hope this helps
Author
30 Mar 2005 12:22 PM
Herfried K. Wagner [MVP]
"George Medlock" <georgemedl***@bellsouth.net> schrieb:
> How do you put a hyperlinked text on a blank form. Just a plain form

Add a LinkLabel control to the form:

\\\
Me.LinkLabel1.Text = "Besuchen Sie mich in Berlin oder Hamburg!"
Me.LinkLabel1.Links.Add(21, 6, "http://www.berlin.de")
Me.LinkLabel1.Links.Add(33, 7, "http://www.hamburg.de")
..
..
..
Private Sub LinkLabel1_LinkClicked( _
    ByVal sender As Object, _
    ByVal e As LinkLabelLinkClickedEventArgs _
) Handles LinkLabel1.LinkClicked
    Process.Start(e.Link.LinkData)
End Sub
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
31 Mar 2005 9:01 AM
Crouchie1998
Herfried,

The example you supplied is very simular to the one Microsoft have in their
VB.NET built in MSDN documentation, which is where I pointed the user to