Scroll Bars in TabPage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • twisterplus
    New Member
    • Apr 2009
    • 4

    #1

    Scroll Bars in TabPage

    I am trying to have a large tabpage with scroll bars.
    I do the following:

    Code:
    this.TabPage1 = new TabPage();
    this.TabPage1.AutoScroll = true;
    this.TabPage1.Size = new System.Drawing.Size(1000, 1000);
    but when I add the TabPage to the

    Code:
    this.TabControl1 = new System.Windows.Forms.TabControl()
    this.TabControl1.TabPages.(TabPage1)
    After that TabPage1 resizes to match the size of TabControl1.
    Any solution to get around this problem and let my TabPage have scroll bars?

    Thanks
  • twisterplus
    New Member
    • Apr 2009
    • 4

    #2
    Originally posted by twisterplus
    I am trying to have a large tabpage with scroll bars.
    I do the following:

    Code:
    this.TabPage1 = new TabPage();
    this.TabPage1.AutoScroll = true;
    this.TabPage1.Size = new System.Drawing.Size(1000, 1000);
    but when I add the TabPage to the

    Code:
    this.TabControl1 = new System.Windows.Forms.TabControl()
    this.TabControl1.TabPages.(TabPage1)
    After that TabPage1 resizes to match the size of TabControl1.
    Any solution to get around this problem and let my TabPage have scroll bars?

    Thanks
    I have even tried resizing TabPage1 after adding it to TabControl1. But the size does not change!

    Comment

    • twisterplus
      New Member
      • Apr 2009
      • 4

      #3
      Solved!
      Realized I should adjust the AutoScrollMinSi ze property.

      Comment

      Working...