views:

431

answers:

1

Hi,

Is there any way to change the color of an underline in a RichTextBox? I've tried http://geekswithblogs.net/pvidler/archive/2003/10/15/188.aspx but it doesn't seem to work. Anybody know where did those enum values came from? Didn't see any documentation for it.

Thanks.

A: 

The enum values are the standard windows values when passing messages to controls. One thing that the article doesn't mention, is that you need to have a selected text in the RichTextBox in order to apply formatting to it, so maybe that's what is missing.

Miki Watts
I have selected text in the RichTextBox.
Meidan Alon