Click here to Skip to main content
15,918,193 members
Home / Discussions / C#
   

C#

 
GeneralRe: object initialization Pin
bidisha_tina11-Jan-06 0:29
bidisha_tina11-Jan-06 0:29 
GeneralRe: object initialization Pin
Colin Angus Mackay11-Jan-06 0:40
Colin Angus Mackay11-Jan-06 0:40 
GeneralRe: object initialization Pin
bidisha_tina11-Jan-06 0:51
bidisha_tina11-Jan-06 0:51 
QuestionEventHandling for Controls inserted(OLE way) in a RichTextBox Pin
Linda Thomas10-Jan-06 23:36
Linda Thomas10-Jan-06 23:36 
QuestionFlicker Free Drawing in C# Pin
AB777110-Jan-06 23:11
AB777110-Jan-06 23:11 
AnswerRe: Flicker Free Drawing in C# Pin
[Marc]11-Jan-06 1:44
[Marc]11-Jan-06 1:44 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 2:00
AB777111-Jan-06 2:00 
GeneralRe: Flicker Free Drawing in C# Pin
J4amieC11-Jan-06 2:29
J4amieC11-Jan-06 2:29 
RichTextBox does have a SetStyle method (it is inherited from Control), but it is protected so only accessible from a derived class.

As was suggested above, to get the functionality you require you must inherit from RichTextBox, set the relevant style flags in your constructor and do your painting in the overriden OnPaint method. Im pretty sure you are using Graphics g = Graphics.CreateGraphics(yourRTBInstance) to draw, which in this case is the wrong way.


-- modified at 8:29 Wednesday 11th January, 2006
GeneralRe: Flicker Free Drawing in C# Pin
[Marc]11-Jan-06 16:55
[Marc]11-Jan-06 16:55 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 17:23
AB777111-Jan-06 17:23 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 17:24
AB777111-Jan-06 17:24 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 18:20
AB777111-Jan-06 18:20 
GeneralRe: Flicker Free Drawing in C# Pin
[Marc]11-Jan-06 22:24
[Marc]11-Jan-06 22:24 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 23:50
AB777111-Jan-06 23:50 
GeneralRe: Flicker Free Drawing in C# Pin
SwitcherSoft30-Mar-11 23:40
SwitcherSoft30-Mar-11 23:40 
QuestionAnother fax question... Pin
Petrus_Alex10-Jan-06 22:40
Petrus_Alex10-Jan-06 22:40 
QuestionSetup and deployment in visual studio.Net Pin
deep710-Jan-06 22:02
deep710-Jan-06 22:02 
AnswerRe: Setup and deployment in visual studio.Net Pin
mitooki11-Jan-06 0:55
mitooki11-Jan-06 0:55 
AnswerRe: Setup and deployment in visual studio.Net Pin
mav.northwind11-Jan-06 6:33
mav.northwind11-Jan-06 6:33 
QuestionFormat drive Pin
oddstar10-Jan-06 21:59
oddstar10-Jan-06 21:59 
AnswerRe: Format drive Pin
Corinna John10-Jan-06 22:28
Corinna John10-Jan-06 22:28 
Question[Message Deleted] Pin
MicroCenter10-Jan-06 20:02
MicroCenter10-Jan-06 20:02 
AnswerRe: SMART CLIENT DEPLOYMENT Pin
mikailcetinkaya11-Jan-06 9:15
mikailcetinkaya11-Jan-06 9:15 
QuestionMAKING A HTML EDITOR Pin
shopi3010-Jan-06 18:19
shopi3010-Jan-06 18:19 
AnswerRe: MAKING A HTML EDITOR Pin
leppie10-Jan-06 18:44
leppie10-Jan-06 18:44 

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.