Click here to Skip to main content
15,905,068 members
Home / Discussions / C#
   

C#

 
GeneralRe: carriage return Pin
genieabdo2-Jun-10 1:28
genieabdo2-Jun-10 1:28 
GeneralRe: carriage return Pin
harold aptroot2-Jun-10 1:36
harold aptroot2-Jun-10 1:36 
GeneralRe: carriage return Pin
genieabdo2-Jun-10 1:41
genieabdo2-Jun-10 1:41 
GeneralRe: carriage return Pin
genieabdo2-Jun-10 1:41
genieabdo2-Jun-10 1:41 
GeneralRe: carriage return Pin
harold aptroot2-Jun-10 1:58
harold aptroot2-Jun-10 1:58 
GeneralRe: carriage return Pin
genieabdo2-Jun-10 3:14
genieabdo2-Jun-10 3:14 
GeneralRe: carriage return Pin
Brent_JR2-Jun-10 10:38
Brent_JR2-Jun-10 10:38 
AnswerRe: carriage return Pin
Luc Pattyn2-Jun-10 1:44
sitebuilderLuc Pattyn2-Jun-10 1:44 
There are a few problems with your message:

1.
"carriage return" and "line feed" are the names of two popular ASCII characters.

2.
what you want to terminate a line of text and start a new one is called "NewLine" in .NET; it is a string and its content depends on your system (Windows, Linux, ...). The default value can be found in Environment.NewLine and will be used by some WriteLine methods, such as Console.WriteLine

3.
data sent to a peripheral using a COM port, or sent to another system in some other way (e,g, portable file), or shared with another system (e.g. a database), should NOT rely on a local convention or characteristic.

4.
the SerialPort also offers a WriteLine method, which relies on its own NewLine property which in turn is initialized to a "line feed". If you explicitly set to "\r\n", you will probably get what you want.

5.
the code in your other message, with initializers D and 1, will not compile as is.

6.
code snippets should preserve their formatting, that is what PRE tags are invented for. Use them!

7.
If you hope to be successful in programming, you'll have to become a lot more meticulous.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

AnswerRe: carriage return Pin
PIEBALDconsult2-Jun-10 4:59
mvePIEBALDconsult2-Jun-10 4:59 
QuestionDocument merging in C#.NET Pin
Bijayani2-Jun-10 0:20
Bijayani2-Jun-10 0:20 
AnswerShould be a Tip or Trick Pin
Pete O'Hanlon2-Jun-10 0:31
mvePete O'Hanlon2-Jun-10 0:31 
QuestionIs there any dll file for .net framework 2.0 Pin
jainiraj1-Jun-10 23:48
jainiraj1-Jun-10 23:48 
AnswerRe: Is there any dll file for .net framework 2.0 Pin
walterhevedeich2-Jun-10 0:17
professionalwalterhevedeich2-Jun-10 0:17 
GeneralRe: Is there any dll file for .net framework 2.0 Pin
jainiraj2-Jun-10 19:51
jainiraj2-Jun-10 19:51 
AnswerRe: Is there any dll file for .net framework 2.0 Pin
Pete O'Hanlon2-Jun-10 0:29
mvePete O'Hanlon2-Jun-10 0:29 
GeneralRe: Is there any dll file for .net framework 2.0 Pin
jainiraj2-Jun-10 19:56
jainiraj2-Jun-10 19:56 
AnswerRe: Is there any dll file for .net framework 2.0 Pin
Abhinav S2-Jun-10 1:24
Abhinav S2-Jun-10 1:24 
QuestionPhotoshop like image editor with a drag and drop image gallery Pin
ikbegins1-Jun-10 23:38
ikbegins1-Jun-10 23:38 
AnswerRe: Photoshop like image editor with a drag and drop image gallery Pin
Anıl Yıldız2-Jun-10 1:41
Anıl Yıldız2-Jun-10 1:41 
GeneralRe: Photoshop like image editor with a drag and drop image gallery Pin
hammerstein052-Jun-10 5:58
hammerstein052-Jun-10 5:58 
GeneralRe: Photoshop like image editor with a drag and drop image gallery Pin
Anıl Yıldız2-Jun-10 6:01
Anıl Yıldız2-Jun-10 6:01 
GeneralRe: Photoshop like image editor with a drag and drop image gallery Pin
ikbegins2-Jun-10 21:09
ikbegins2-Jun-10 21:09 
QuestionFlickering screen when minimizing Pin
TimSWatson1-Jun-10 21:57
TimSWatson1-Jun-10 21:57 
AnswerRe: Flickering screen when minimizing Pin
Pete O'Hanlon1-Jun-10 22:17
mvePete O'Hanlon1-Jun-10 22:17 
GeneralRe: Flickering screen when minimizing Pin
TimSWatson1-Jun-10 23:10
TimSWatson1-Jun-10 23:10 

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.