Click here to Skip to main content
15,889,216 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: In RichTextBox, changing WordWrap affects Undo/Redo? Pin
εїзεїзεїз22-Aug-09 20:17
εїзεїзεїз22-Aug-09 20:17 
GeneralRe: In RichTextBox, changing WordWrap affects Undo/Redo? Pin
εїзεїзεїз22-Aug-09 20:22
εїзεїзεїз22-Aug-09 20:22 
GeneralRe: In RichTextBox, changing WordWrap affects Undo/Redo? Pin
Alan Burkhart23-Aug-09 5:11
Alan Burkhart23-Aug-09 5:11 
GeneralRe: In RichTextBox, changing WordWrap affects Undo/Redo? Pin
Alan N23-Aug-09 13:02
Alan N23-Aug-09 13:02 
GeneralRe: In RichTextBox, changing WordWrap affects Undo/Redo? Pin
Alan Burkhart23-Aug-09 14:31
Alan Burkhart23-Aug-09 14:31 
QuestionSmall problem pasting text Pin
Alan Burkhart21-Aug-09 18:06
Alan Burkhart21-Aug-09 18:06 
AnswerRe: Small problem pasting text Pin
εїзεїзεїз21-Aug-09 21:20
εїзεїзεїз21-Aug-09 21:20 
AnswerRe: Small problem pasting text Pin
Luc Pattyn22-Aug-09 0:28
sitebuilderLuc Pattyn22-Aug-09 0:28 
Hi,

the problem relates to the representation of line breaks, i.e. the difference between Environment.NewLine (which equals "\r\n" on Windows) and the ASCII CR and LF characters (carriage return \r and line feed \n).

when you use most applications or most Controls, and copy some text then some processing occurs:
1. all line breaks use "\r\n"
2. several different text formats (Text, UnicodeText, RichTextFormat, ...) are put on the Clipboard, so the receiver can pick the most informative format he understands

when you simply do Clipboard.SetText(rtf.SelectedText, TextDataFormat.Text) then the text is copied as is (no Newline processing) and only two formats are stored (Text, UnicodeText).

Some programs are rather fussy about Newlines, and Notepad is the most popular of those.

Suggestion: use RichTextBox.Copy() method to copy selected text to the clipboard.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Small problem pasting text Pin
Alan Burkhart22-Aug-09 2:25
Alan Burkhart22-Aug-09 2:25 
QuestionChanging DateTimePicker MinDateTime to something other than 01/01/1753 Pin
codeprojectalanr21-Aug-09 12:10
codeprojectalanr21-Aug-09 12:10 
AnswerRe: Changing DateTimePicker MinDateTime to something other than 01/01/1753 Pin
Henry Minute21-Aug-09 12:48
Henry Minute21-Aug-09 12:48 
GeneralRe: Changing DateTimePicker MinDateTime to something other than 01/01/1753 Pin
codeprojectalanr22-Aug-09 3:22
codeprojectalanr22-Aug-09 3:22 
GeneralRe: Changing DateTimePicker MinDateTime to something other than 01/01/1753 Pin
Henry Minute22-Aug-09 6:00
Henry Minute22-Aug-09 6:00 
GeneralRe: Changing DateTimePicker MinDateTime to something other than 01/01/1753 Pin
Todd Carnes9-Apr-10 14:20
Todd Carnes9-Apr-10 14:20 
QuestionRemove border of group box Pin
Aman Bhullar20-Aug-09 3:19
Aman Bhullar20-Aug-09 3:19 
AnswerRe: Remove border of group box Pin
Luc Pattyn20-Aug-09 3:28
sitebuilderLuc Pattyn20-Aug-09 3:28 
AnswerRe: Remove border of group box Pin
Dave Kreskowiak20-Aug-09 3:33
mveDave Kreskowiak20-Aug-09 3:33 
AnswerRe: Remove border of group box Pin
εїзεїзεїз21-Aug-09 11:00
εїзεїзεїз21-Aug-09 11:00 
GeneralRe: Remove border of group box Pin
KatMagic10-Feb-10 9:00
professionalKatMagic10-Feb-10 9:00 
AnswerRe: Remove border of group box Pin
Mugdha_Aditya29-Dec-11 17:04
Mugdha_Aditya29-Dec-11 17:04 
Questionrun the windows application(c#) on dual screen simultaneously. Pin
varunchetu20-Aug-09 1:36
varunchetu20-Aug-09 1:36 
AnswerRe: run the windows application(c#) on dual screen simultaneously. Pin
Luc Pattyn20-Aug-09 2:29
sitebuilderLuc Pattyn20-Aug-09 2:29 
AnswerRe: run the windows application(c#) on dual screen simultaneously. Pin
Dave Kreskowiak20-Aug-09 3:32
mveDave Kreskowiak20-Aug-09 3:32 
AnswerRe: run the windows application(c#) on dual screen simultaneously. Pin
εїзεїзεїз21-Aug-09 10:54
εїзεїзεїз21-Aug-09 10:54 
QuestionNeed solution for vulnerability "IIS 5.0 Denial of Service" Pin
Ankur.Bakliwal19-Aug-09 1:22
Ankur.Bakliwal19-Aug-09 1:22 

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.