简体   繁体   中英

How can I increase the height of a scrollable tabpanel?

I am developing a form in Visual Studio which has a TabControl with several TabPage objects on it. I want one TabPage to fit content that is several times too big vertically for the object in the Visual Studio designer (and indeed would be too big for the monitor). How can I increase the size of the TabPage beyond that of its parent TabControl or Form , so that I can add the required controls?

When I try to edit the height of the TabPage object in the Properties window, it just undoes my edit.

  1. Set the AutoScroll property of the TabPanel to true (thanks @LarsTech).
  2. Add a user control to the TabPanel.
  3. Move the user control far down the TabPanel. You can do this by changing its Location x value.

After (3) the scroll bar will change in the editor and the editable area of the tab panel will have increased

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