Click here to Skip to main content
15,917,709 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDisable desktop short cuts Pin
aseef1-Nov-06 6:05
aseef1-Nov-06 6:05 
AnswerRe: Disable desktop short cuts Pin
Monkeyget26-Nov-06 5:21
Monkeyget26-Nov-06 5:21 
QuestionCannot perform '<=' operation on System.DateTime and System.String Pin
guygo1-Nov-06 2:02
guygo1-Nov-06 2:02 
AnswerRe: Cannot perform '<=' operation on System.DateTime and System.String Pin
Christian Graus2-Nov-06 13:18
protectorChristian Graus2-Nov-06 13:18 
QuestionMemoryStream Remoting problem Pin
sandu200431-Oct-06 22:09
sandu200431-Oct-06 22:09 
QuestionWindows service and message queue Pin
MinaFawzi31-Oct-06 21:59
MinaFawzi31-Oct-06 21:59 
QuestionCOM+ Proxy VS Remoting Pin
Nirmald31-Oct-06 19:48
Nirmald31-Oct-06 19:48 
QuestionRead-only Lines propoerty of RichTextBox? Painting customizations Pin
BehemotCat31-Oct-06 10:25
BehemotCat31-Oct-06 10:25 
Hi I'm trying to make RichTextBox display other characters than it contains in its buffer (i.e. Text property).
For example I want to display all occurences of 'c' as 'v'..

The first approach is to add a second buffer for keeping the original text, but there's a lot of work to do with implementing edition functions and synchronization beetween this buffer and RichTextBox.Text property.
So I was thinking about a workaround, for example overriding the WndProc to process the text (replace all 'c' with 'v'), launch the PAINT method and then replace the modified text with the original one. Unfortunately I'm unable to access the Lines property of RichTextBox in WndProc function. Furthermore changing the Text property launches some events (for example Text_changed) which also call the Paint function, which apparently leads to paint events loop..
Is there a way to make this work?

Maybe someone could find a better solution to my problem.. I would be very gratefulSmile | :)

Some other questions:

- Why is the Lines property read only? Is there a way to change Text in RTB using this property (for example Lines[i].append or Lines[i] := smth)?

- Is there a way to cancel an event that has been already launched and is pending in the event handler's loop?

Best regards and thanks for your help
Peter
QuestionPrinter Properties Pin
alexfromto31-Oct-06 9:10
alexfromto31-Oct-06 9:10 
AnswerRe: Printer Properties Pin
Duncan Edwards Jones2-Nov-06 7:29
professionalDuncan Edwards Jones2-Nov-06 7:29 
GeneralRe: Printer Properties Pin
alexfromto2-Nov-06 8:19
alexfromto2-Nov-06 8:19 
GeneralRe: Printer Properties Pin
Duncan Edwards Jones4-Nov-06 1:53
professionalDuncan Edwards Jones4-Nov-06 1:53 
QuestionStored Procedure Reporting in Visio Pin
SriJassbond30-Oct-06 22:47
SriJassbond30-Oct-06 22:47 
Questionhow to turn off computer Pin
kobi10i1030-Oct-06 6:53
kobi10i1030-Oct-06 6:53 
AnswerRe: how to turn off computer Pin
Vega0230-Oct-06 7:00
Vega0230-Oct-06 7:00 
GeneralRe: how to turn off computer Pin
Colin Angus Mackay31-Oct-06 5:08
Colin Angus Mackay31-Oct-06 5:08 
GeneralRe: how to turn off computer Pin
Colin Angus Mackay31-Oct-06 5:11
Colin Angus Mackay31-Oct-06 5:11 
GeneralRe: how to turn off computer Pin
Vega0231-Oct-06 7:20
Vega0231-Oct-06 7:20 
AnswerRe: how to turn off computer Pin
SriJassbond30-Oct-06 23:22
SriJassbond30-Oct-06 23:22 
QuestionFramework 3.0 WWF Pin
Vorskla29-Oct-06 23:02
Vorskla29-Oct-06 23:02 
QuestionIS this possible Pin
Tauseef A29-Oct-06 21:57
Tauseef A29-Oct-06 21:57 
AnswerRe: IS this possible Pin
Robert Rohde30-Oct-06 0:54
Robert Rohde30-Oct-06 0:54 
QuestionRe: IS this possible Pin
Tauseef A31-Oct-06 1:10
Tauseef A31-Oct-06 1:10 
Question.NET installer problem Pin
Ali Akil29-Oct-06 17:21
Ali Akil29-Oct-06 17:21 
QuestionIs this possible? Pin
User 58385229-Oct-06 12:57
User 58385229-Oct-06 12:57 

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.