Click here to Skip to main content
15,910,603 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDisabling scrolling in RichTextBox ?? Pin
ashkan87_224-Aug-09 0:12
ashkan87_224-Aug-09 0:12 
AnswerRe: Disabling scrolling in RichTextBox ?? Pin
εїзεїзεїз24-Aug-09 15:19
εїзεїзεїз24-Aug-09 15:19 
GeneralRe: Disabling scrolling in RichTextBox ?? Pin
ashkan87_225-Aug-09 0:11
ashkan87_225-Aug-09 0:11 
RantStupid Scrollbar bug Pin
LloydA11123-Aug-09 8:43
LloydA11123-Aug-09 8:43 
GeneralRe: Stupid Scrollbar bug Pin
Alan N23-Aug-09 13:01
Alan N23-Aug-09 13:01 
GeneralRe: Stupid Scrollbar bug Pin
εїзεїзεїз23-Aug-09 14:55
εїзεїзεїз23-Aug-09 14:55 
GeneralRe: Stupid Scrollbar bug Pin
molesworth24-Aug-09 6:59
molesworth24-Aug-09 6:59 
QuestionIn RichTextBox, changing WordWrap affects Undo/Redo? Pin
Alan Burkhart22-Aug-09 8:46
Alan Burkhart22-Aug-09 8:46 
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 

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.