liquidspaces Posted June 19, 2003 Posted June 19, 2003 I'm trying to create a report directly in Visual Basic.Net, and I'm not sure what component to use. In VB 6 I used text boxes for this type of thing since it was very easy to size them however big or small I wanted and formatting the data within them was a snap. However, in VB.NET I can't figure out how to set the height of the text box. Even changing the windows generated code doesn't do the trick. Am I stuck with a height of 20px? A list box could work as it's easy to resize, though I don't know if there's a way to get more than one item on each line. Is there any formatting code in VB.NET like there is in C++? A '\n' or anything for hard returns? Thanks, Kevin Quote
*Experts* mutant Posted June 19, 2003 *Experts* Posted June 19, 2003 You have to set multiline property of TextBox to give it a different height. Quote
liquidspaces Posted June 20, 2003 Author Posted June 20, 2003 Great, thanks for your help. I just have one more question: How do I insert a newline? I just need to know how to insert a hard return. The example I found in the VB.NET help was a bit strange...it looked like an awful lot of work just to do this. Quote
Leaders John Posted June 20, 2003 Leaders Posted June 20, 2003 Use: ControlChars.NewLine to insert a "hard return". Quote "These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
*Experts* mutant Posted June 20, 2003 *Experts* Posted June 20, 2003 Or :) System.Enviornment.NewLine() Quote
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.