This project is read-only.

How to have clickable links similar to the RichTextBox

Mar 23, 2009 at 5:35 PM
The .net in box RichTextBox has a property "DetectUrls".  Is there any way to have this same functionality in the ScintillaNet control?

Mar 23, 2009 at 8:33 PM
It is possible, just not easy. In Scintilla hyperlinks are called hotspots. This is an attribute of a style. So what you would have to do is first designate a style to have IsHotspot set to true. Then you have to apply this style to anything you want as a hyperlink. That is the hardest part as you have to take into account whenever any text has been added or removed and determine where the hyperlink style needs to be applied. Lastly you have to handle the HotSpotClick event to launch a browser using the given url.