Home > Net >  Textbox display problems
Textbox display problems

Time:01-17

String temp;

A textbox.

A.t ext +=temp + "\ r \ n";
This is known to all, temp display in a.t below ext, effect is to keep original content textbox, then below the temp display content in the original

A.t ext=temp + a.t ext + "\ r \ n";
This is, in turn, retain the original content textbox, temp display on the top of the original content

My question is is a.t ext=temp + a.t ext + "\ r \ n"; If there is any type a.t ext +=temp such wording,
Always feel a.t ext=temp + a.t ext + "\ r \ n"; So write more ugly,

CodePudding user response:

Want to elegant point can try string format

CodePudding user response:

\ r \ n can also change the Environment. NewLine
  •  Tags:  
  • C#
  • Related