Links in c# textbox

后端 未结 2 1868
走了就别回头了
走了就别回头了 2021-01-12 20:42

I have a custom Jabber IM client and I\'m having a problem with links. When something like http://something.com is entered I want it to show up as a link in the message win

2条回答
  •  心在旅途
    2021-01-12 21:07

    A RichTextBox can detect URL's, I don't think a regular TextBox can detect them. However you can always use a Single line RichTextBox for your input.

    http://msdn.microsoft.com/en-us/library/f591a55w.aspx

提交回复
热议问题