Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: conversion to pdf Pin
John Kuhn4-Feb-04 19:37
John Kuhn4-Feb-04 19:37 
GeneralRe: conversion to pdf Pin
mohdshiraz4-Feb-04 19:46
mohdshiraz4-Feb-04 19:46 
GeneralRe: conversion to pdf Pin
John Kuhn4-Feb-04 19:56
John Kuhn4-Feb-04 19:56 
GeneralRe: conversion to pdf Pin
Gerald Leslie Jones4-Feb-04 20:05
Gerald Leslie Jones4-Feb-04 20:05 
GeneralRe: conversion to pdf Pin
Heath Stewart5-Feb-04 4:45
protectorHeath Stewart5-Feb-04 4:45 
GeneralRe: conversion to pdf Pin
mohdshiraz5-Feb-04 0:43
mohdshiraz5-Feb-04 0:43 
GeneralWhat's Wrong Pin
Inam4-Feb-04 17:58
Inam4-Feb-04 17:58 
Generalno instantiate Pin
rod termaat4-Feb-04 17:24
rod termaat4-Feb-04 17:24 
GeneralRe: no instantiate Pin
Tom Clement4-Feb-04 17:39
professionalTom Clement4-Feb-04 17:39 
GeneralRe: no instantiate Pin
Not Active4-Feb-04 18:09
mentorNot Active4-Feb-04 18:09 
GeneralRe: no instantiate Pin
boogs5-Feb-04 2:48
boogs5-Feb-04 2:48 
GeneralRe: no instantiate Pin
Heath Stewart5-Feb-04 4:42
protectorHeath Stewart5-Feb-04 4:42 
QuestionRichTextBox has a bug? Pin
Zembaliti4-Feb-04 14:56
Zembaliti4-Feb-04 14:56 
AnswerRe: RichTextBox has a bug? Pin
Nick Parker4-Feb-04 16:50
protectorNick Parker4-Feb-04 16:50 
GeneralRe: RichTextBox has a bug? Pin
Tom Clement4-Feb-04 17:07
professionalTom Clement4-Feb-04 17:07 
I think Zembaliti is assuming that there was something in the undo buffer before these calls. As it happens, this is an acknowledged bug in the RichTextBox control. Even if the RichTextBox has changed, the act of accessing the Text property or the TextLength property completely wipes out the Undo/Redo buffer.

To work around this, you have to use the Win32 API (e.g. EM_GETTEXTEX) to get text, circumventing the Text property. If you want the Text length, you have to send the EM_GETTEXTLENGTHEX message to the control. I derive a new control from RichTextBox and override these properties to make using RichTextBox easier in my code.

You can see an example of using EM_GETTEXTLENGTHEX for this purpose on a RichTextBox in my recent article here. A google search also confirms it.
GeneralRe: RichTextBox has a bug? Pin
Zembaliti5-Feb-04 16:03
Zembaliti5-Feb-04 16:03 
GeneralRe: RichTextBox has a bug? Pin
Tom Clement5-Feb-04 16:17
professionalTom Clement5-Feb-04 16:17 
GeneralRe: RichTextBox has a bug? Pin
Zembaliti5-Feb-04 20:41
Zembaliti5-Feb-04 20:41 
GeneralRe: RichTextBox has a bug? Pin
Zembaliti6-Feb-04 0:25
Zembaliti6-Feb-04 0:25 
QuestionMulti-platform C#? Pin
Kryal4-Feb-04 12:50
Kryal4-Feb-04 12:50 
AnswerRe: Multi-platform C#? Pin
Dmitriy Kostovetskiy4-Feb-04 13:22
Dmitriy Kostovetskiy4-Feb-04 13:22 
GeneralRe: Multi-platform C#? Pin
Gerald Leslie Jones4-Feb-04 20:00
Gerald Leslie Jones4-Feb-04 20:00 
GeneralRe: Multi-platform C#? Pin
Michael P Butler5-Feb-04 2:01
Michael P Butler5-Feb-04 2:01 
GeneralRe: Multi-platform C#? Pin
Heath Stewart5-Feb-04 4:32
protectorHeath Stewart5-Feb-04 4:32 
GeneralCustom WebControl - Rendering Images Pin
Member 6440164-Feb-04 12:26
Member 6440164-Feb-04 12:26 

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.