Non-web links in Richtextbox
I'm trying to replicate something like the outlook rules screen, which generates a textbox with a text description of your rule options, with each condition being a link you can click on to modify. Is it possible to do this easily?
The linkclicked property only seems to work with hyperlinks, and those seem to be handled outside the RTF code itself. I tried comparing the raw RTF of a link and non link string, and it has the same codes, so I can't force it that way.
The only other thing I can think of is to note the location/length of the links, formating the color/underline by hand, and then coming up with a way to see why the mouse click or cursor goes when clicked, this doesn't seem to be too easy, either.
Re: Non-web links in Richtextbox
You can use a link label and it's click event to open another form etc.
Re: Non-web links in Richtextbox
In other words, don't use an RTB, but use a panel with a white background that looks like an RTB, and contains text, with the link label in its place.
Re: Non-web links in Richtextbox
Maybe you can find a way to create a hyperlink yourself in the Rich Text spec
1 Attachment(s)
Re: Non-web links in Richtextbox
I did try hard coding an RTF hyperlink, but it didn't seem to work. Not sure if I didn't do it right or it only supports URL links.
I did see an example using the pane and adding controls to it, but it seems a little hard to do unless I make the entire line a link, instead of just a word. Otherwise you'd have to string together regular labels, worry about word wrap, etc.
Is it possible to get a character count at the position in the box you click?
I've attached screenshot of what I'm trying to replicate