How do you put a hyperlinked text on a blank form

  • Thread starter Thread starter George Medlock
  • Start date Start date
G

George Medlock

How do you put a hyperlinked text on a blank form. Just a plain form

Thanks
 
Add a linkLabel control from your toolbox.

in the click event:

System.Diagnostics.Process.Start(mailto:[email protected]?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
 
George Medlock said:
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
///
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top