Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: tuples Pin
leppie25-Jan-06 23:30
leppie25-Jan-06 23:30 
QuestionRichtext Box question Pin
Beringer25-Jan-06 7:13
Beringer25-Jan-06 7:13 
AnswerRe: Richtext Box question Pin
James Gupta25-Jan-06 8:33
professionalJames Gupta25-Jan-06 8:33 
AnswerRe: Richtext Box question Pin
Allah On Acid25-Jan-06 9:05
Allah On Acid25-Jan-06 9:05 
AnswerRe: Richtext Box question Pin
Beringer25-Jan-06 10:35
Beringer25-Jan-06 10:35 
AnswerRe: Richtext Box question Pin
DigitalKing25-Jan-06 19:18
DigitalKing25-Jan-06 19:18 
GeneralRe: Richtext Box question Pin
Saravanan_article29-Jan-06 23:30
Saravanan_article29-Jan-06 23:30 
AnswerRe: Richtext Box question Pin
mav.northwind26-Jan-06 6:13
mav.northwind26-Jan-06 6:13 
Hi!
The Rich Edit control that's actually the core control underneath the RichTextBox can display underlines (even the squiggly ones), but setting the corresponding character styles is not possible directly with the regular RichTextBox.

You'll have to send EM_SETCHARFORMAT messages to the rtb to enable underlining in a given style. You can't have an underline color that's different from the text foreground color, though.

You might want to look up the CHARFORMAT2 structure in the Platform SDK documentation on the different options you have to underline text within a rich edit control (and thus in a RichTextBox).

Regards,
mav

-- modified at 7:47 Saturday 4th February, 2006
Just found out that my statement on the underline color was incorrect.
You CAN have different underline colors, althouth it's not documented in the CHARFORMAT2 struct. The upper 4 bits of the bUnderlineType determine the color.

QuestionSplashScreen with Flash controle !!! Pin
CSharpJSharp25-Jan-06 6:55
CSharpJSharp25-Jan-06 6:55 
AnswerRe: SplashScreen with Flash controle !!! Pin
James Gupta25-Jan-06 8:34
professionalJames Gupta25-Jan-06 8:34 
GeneralRe: SplashScreen with Flash controle !!! Pin
CSharpJSharp25-Jan-06 23:35
CSharpJSharp25-Jan-06 23:35 
QuestionDouble buffering the scroll event of a RichTextBox Pin
dbaum25-Jan-06 6:44
dbaum25-Jan-06 6:44 
AnswerRe: Double buffering the scroll event of a RichTextBox Pin
DigitalKing25-Jan-06 9:43
DigitalKing25-Jan-06 9:43 
QuestionFire two events at the same time? Pin
Tom Wright25-Jan-06 6:41
Tom Wright25-Jan-06 6:41 
AnswerRe: Fire two events at the same time? Pin
Le centriste25-Jan-06 7:22
Le centriste25-Jan-06 7:22 
AnswerRe: Fire two events at the same time? Pin
Guffa25-Jan-06 8:21
Guffa25-Jan-06 8:21 
GeneralRe: Fire two events at the same time? Pin
Tom Wright25-Jan-06 9:30
Tom Wright25-Jan-06 9:30 
GeneralRe: Fire two events at the same time? Pin
S. Senthil Kumar25-Jan-06 18:01
S. Senthil Kumar25-Jan-06 18:01 
QuestionSyntax Highlighting in VS Pin
the_traveller25-Jan-06 6:39
the_traveller25-Jan-06 6:39 
QuestionRowUpdating Event Pin
lordofcsharp25-Jan-06 4:38
lordofcsharp25-Jan-06 4:38 
AnswerRe: RowUpdating Event Pin
J4amieC25-Jan-06 4:51
J4amieC25-Jan-06 4:51 
GeneralRe: RowUpdating Event Pin
lordofcsharp25-Jan-06 5:01
lordofcsharp25-Jan-06 5:01 
QuestionNetSend problem Pin
razi3lll25-Jan-06 3:53
razi3lll25-Jan-06 3:53 
AnswerRe: NetSend problem Pin
Dave Kreskowiak25-Jan-06 4:28
mveDave Kreskowiak25-Jan-06 4:28 
QuestionHelp me Pin
ltxuan25-Jan-06 3:52
ltxuan25-Jan-06 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.