You can enable hyperlinks in the EditControl by calculating the specified text positions with the following events.
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.
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
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.