sethindeed Posted February 28, 2003 Posted February 28, 2003 This is the expression I used in VB6 to emulate carriage return when setting the text property of a Textbox at runtime. In .net, it does not seems to be understood by the textbox control. I set to AllowReturn property to True, but the textbox won't still show the carriage return. Is there a new syntax or something ? thx Quote What I don't know keeps me excited...
sethindeed Posted February 28, 2003 Author Posted February 28, 2003 Chr (13) & Chr(10) Quote What I don't know keeps me excited...
*Gurus* divil Posted February 28, 2003 *Gurus* Posted February 28, 2003 You should use Environment.NewLine when you need to instead a newline in to a textbox or anything else. This keeps it platform independant. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
sethindeed Posted March 1, 2003 Author Posted March 1, 2003 Okay Took note of it ;) Quote What I don't know keeps me excited...
Ariez Posted March 1, 2003 Posted March 1, 2003 Also new handy constants in .NET: vbCrLf or vbNewLine = chr(13)+ Cher(10) VbCr = Chr(13) VbLf = Chr(10) if u got msdn installed just check this link: http://ms-help://MS.VSCC/MS.MSDNVS/vblr7/html/vamscMiscellaneousConstants.htm Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.