We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to enable hyperlinks in EditControl?

You can enable hyperlinks in the EditControl by calculating the specified text positions with the following events.

  1. MouseMove
  2. MouseDown

 

MouseMove: Changes the cursor, when mouse hovers on the required text of the control.

MouseDown: Navigates the specified webpage, when mouse button is pressed on the required text of the control. The CurrentLineText property helps match the input text in the EditControl.

 

The following code example demonstrates the same.

C#

 

VB

 

Note: PointToVirtualPosition helps to get the virtual position of the text. It also helps to converts the points in client coordinates to the virtual position in text.

 

Figure 1: EditControl shows with hyperlinks in C#

Figure 2: EditControl shows with hyperlinks in VB

Figure 3: Webpage loaded to browser after clicking the Hyperlink in EditControl

Sample Links:

C#: EditControl_HyperLink_C#

VB: EditControl_HyperLink_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
5505 10/23/2015 10/23/2015 WinForms EditControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon