Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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.
  • Leaders
Posted
Use:
ControlChars.NewLine

to insert a "hard return".

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...