简体   繁体   中英

how to make a prescrollable tab control so i can add in tons of text boxes without having the form not take up the entire screen

so I have a tab control in my c# program that's going to be getting a lot of information from a user. this is in the form of like 40 checkboxes/textboxes. I'm trying to figure out how in the designer to add a scroll bar ahead of time so I can have the form be a nice 800x500 but allow the user to scroll threw all the boxes and fill them up. idk if this is possible in the designer, or if I need to add them in through code with like a loop or something and then have autoscrollbar on so it works that way. Any ideas?

Open the designer. Select your tab page in the Properties window. Set AutoScroll property to True . Expand AutoScrollMinSize property and enter some value (let say 1000) for Height . Now your tab page should have a vertical scrollbar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM