Is there some way that I could create a hyperlink within a Textbox control? The catch: I would like only certain text to act as a hyperlink. For example, StackOverflow.com allows me to make only THIS text act as a hyperlink. Is there some way to do this in C# from withing a Textbox?
Asked
Active
Viewed 2.8k times
13
-
richTextbox - I'll give it a go. I didn't realize that RTB had such capabilities until just now. – Jul 03 '11 at 16:39
-
richTextBox -> nothing but a road to The Major Pain. If you are up to using markup text boxes, for the love of all sacred, don't use richtextbox. Editing text in it is impossible without API of some kind... – Daniel Mošmondor Jul 03 '11 at 23:21
-
Try to follow this msdn page regarding the inclusion of a link within of a RichTextBox control. http://msdn.microsoft.com/en-us/library/f591a55w.aspx Bye – Carmelo La Monica Jul 03 '11 at 21:38
-
Try look here: http://stackoverflow.com/q/321037/735864 or here: http://stackoverflow.com/q/330850/735864 I think also you can use something like this: http://tinymce.moxiecode.com/tryit/full.php – danyolgiax Jul 03 '11 at 16:35
1 Answers
1
Use a RichEditCtrl. Does the text need to be editable? Otherwise you could use Labels and Hyperlinks in a StackPanel.

Daily Mail
- 23
- 4

Joe Sonderegger
- 784
- 5
- 15
-
Is your answer related to winforms or WPF? Can't find _"hyperlinks in stackpanel"_ in Winforms.. – ephraim Sep 26 '17 at 08:34
-
1