Click here to Skip to main content
15,913,758 members
Home / Discussions / C#
   

C#

 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
Dennis C. Dietrich27-Feb-05 10:49
Dennis C. Dietrich27-Feb-05 10:49 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
new_phoenix27-Feb-05 11:21
new_phoenix27-Feb-05 11:21 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
S. Senthil Kumar27-Feb-05 11:53
S. Senthil Kumar27-Feb-05 11:53 
GeneralAccess Registry files Pin
Anthony Mushrow27-Feb-05 7:09
professionalAnthony Mushrow27-Feb-05 7:09 
GeneralRe: Access Registry files Pin
Dennis C. Dietrich27-Feb-05 7:36
Dennis C. Dietrich27-Feb-05 7:36 
GeneralContext menu in Word using C# Pin
User 4886927-Feb-05 6:00
User 4886927-Feb-05 6:00 
Generalmultiline programmatically formatting text Pin
Pyro Joe27-Feb-05 5:15
Pyro Joe27-Feb-05 5:15 
GeneralRe: multiline programmatically formatting text Pin
Heath Stewart27-Feb-05 5:45
protectorHeath Stewart27-Feb-05 5:45 
A "buffer" is a block of memory that holds data. The text buffer (a char[] array, actually) will be even larger if you insert return codes because you'll be including 1-2 extract characters every so often. How the buffer is displayed is a user interface.

If you want to insert a return code you must use the correct return code for the underlying platform. The Environment.NewLine property abstracts this detail away from you, since - on Windows - the actual new line constant is "\r\n". For console output you can use simply "\n" which gets translated appropriately, but for most text you should use Environment.NewLine. For example:
string value = string.Format("This is a{0}broken line.{0}This is a separate line.", Environment.NewLine);
label1.Text = value;


This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: multiline programmatically formatting text Pin
Pyro Joe27-Feb-05 6:19
Pyro Joe27-Feb-05 6:19 
GeneralRe: multiline programmatically formatting text Pin
Pyro Joe27-Feb-05 6:36
Pyro Joe27-Feb-05 6:36 
GeneralRe: multiline programmatically formatting text Pin
S. Senthil Kumar27-Feb-05 7:13
S. Senthil Kumar27-Feb-05 7:13 
QuestionSystem Timer? Pin
Azel Low27-Feb-05 4:11
Azel Low27-Feb-05 4:11 
AnswerRe: System Timer? Pin
Heath Stewart27-Feb-05 4:20
protectorHeath Stewart27-Feb-05 4:20 
Generallarge font and tabcontrol issue Pin
Aviv Halperin27-Feb-05 2:44
Aviv Halperin27-Feb-05 2:44 
GeneralRe: large font and tabcontrol issue Pin
Heath Stewart27-Feb-05 4:53
protectorHeath Stewart27-Feb-05 4:53 
GeneralRe: large font and tabcontrol issue Pin
Aviv Halperin27-Feb-05 5:36
Aviv Halperin27-Feb-05 5:36 
GeneralRe: large font and tabcontrol issue Pin
Heath Stewart27-Feb-05 5:39
protectorHeath Stewart27-Feb-05 5:39 
Questionhow to make it user input (urgent) Pin
tyenchoo26-Feb-05 22:58
tyenchoo26-Feb-05 22:58 
AnswerRe: how to make it user input (urgent) Pin
Kodanda Pani28-Feb-05 22:20
Kodanda Pani28-Feb-05 22:20 
GeneralRe: how to make it user input (urgent) Pin
tyenchoo28-Feb-05 22:35
tyenchoo28-Feb-05 22:35 
GeneralRefreshing images, performance problem Pin
lszymik26-Feb-05 22:48
lszymik26-Feb-05 22:48 
GeneralRe: Refreshing images, performance problem Pin
Heath Stewart27-Feb-05 4:49
protectorHeath Stewart27-Feb-05 4:49 
GeneralRe: Refreshing images, performance problem Pin
lszymik28-Feb-05 5:30
lszymik28-Feb-05 5:30 
GeneralXmlSerializer bhaviour Pin
mav.northwind26-Feb-05 21:27
mav.northwind26-Feb-05 21:27 
GeneralRe: XmlSerializer bhaviour Pin
Heath Stewart27-Feb-05 4:43
protectorHeath Stewart27-Feb-05 4:43 

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.