RichTextBox Hyperlink Mousepointer bug

jzsmith33

Newcomer
Joined
Jun 19, 2004
Messages
2
Hi,

I've come across a bug in the RichTextBox control.

If you add an RTB to a form, then add a url to the text property.

The run the project.

The mouse pointer (as you'd expect) changes to a hand while over the URL.
But it also remain a hand under the URL.

Also when you click in the area under the URL it raises the LinkClicked event.

This bug occurs in dotnet 1.1 and 1.0.

Can anyone suggest a workaround (other than adding an extra return character)?

TIA
 
This isn't a bug. This is actually by design. Any blank space below the last line of text in a RichTextBox handles the mouse as though it were the last line. For an example, open WordPad, maximize it, type in some text not followed by a carrige return, and then drag the mouse accross the empty space at the bottom. It will select the text as though you dragged the cursor accross the text.
 
Back
Top