Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...