How to insert LinkLabel into Rich text box

G

Guest

Hi,
Is there any way to insert LinkLabel in rich text box? Or hyperlink a text
in rich text box?
Thanks
Al
 
C

Clasperm

Why insert a LinkLable when u can,
Just set the DetectUrls property of the richtexbox control to TRUE.

Wonders of .NET......never ceases to amaze me ..

Clas
 
H

Herfried K. Wagner [MVP]

Clasperm said:
Why insert a LinkLable when u can,
Just set the DetectUrls property of the richtexbox control to
TRUE.

This will only work with "URLs", but you cannot lik a certain span of text
with an URL.
 
G

Guest

Hi,
I need to allow user when they click on certain work the word replaces to
something else so using linklable. How can i do that with URLs?
thanks
Al
 
G

Guest

dim LinkLabel1 as new LinkLabel
Me.RichTextBox1.Controls.Add(LinkLabel1)
LinkLabel1.Location = New Point(10, 40)
LinkLabel1.BringToFront()

The problem is you need adjust LinkLabel1.Location dynamically while
RichTextBox1's scrolling.
 

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

Top