Create hyperlink in TextBox control

2019-02-21 14:36发布

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?

1条回答
萌系小妹纸
2楼-- · 2019-02-21 15:11

Use a RichEditCtrl. Does the text need to be editable? Otherwise you could use Labels and Hyperlinks in a StackPanel.

查看更多
登录 后发表回答