0

I have a program that outputs a series of items onto a form--an "invoice" if you would like. The problem is, when the user enters in more items than the invoice's size can handle the rest just disappears into the mysterious realm down at the bottom.

Is there a way where I can make the label automatically detect items going in and create a vscrollbar or something similar so that it can accommodate it's size?

Thanks.

3
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by Netcode
0

Add a Panel to your Form, set "AutoScroll" in Panel's Properties to "True" and place your Label inside the Panel.

0

Add a Panel to your Form, set "AutoScroll" in Panel's Properties to "True" and place your Label inside the Panel.

Would the label automatically expand with the panel as well then?

0

If you re-size the Panel to the Label's size, it should show scroll-bars on the Panel once you add more than one line of text in the Label.

0

If you re-size the Panel to the Label's size, it should show scroll-bars on the Panel once you add more than one line of text in the Label.

I made panel and placed a label with the same size inside the panel but no scroll bar when the text in the label extends past the dimensions! :(

0

Nevermind. The label needed to be on autosize for it to work! :D

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.