I have create a UserControl added in TabPage.
Tabpage.AutoScroll = true;
After launching an application ,there is only Vertical scrollbar. When I resize the application horizontally ther is no scroll bar.
Tabcontrol-> TabPage -> UserControl
// tabPage
//
this.tab_resume_new.Controls.Add(this.userControlResume);
this.tab_resume_new.Location = new System.Drawing.Point(4, 29);
this.tab_resume_new.Name = "tabPage";
this.tab_resume_new.Size = new System.Drawing.Size(1270, 635);
In UserControl
// UserControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.Controls.Add(this.tableLayoutPanel8);
this.Name = "UserControlResume";
this.Size = new System.Drawing.Size(1260, 625)
There are usually just a few things that can go wrong in this situation.
1) you need to put AutoScroll on your UserControl
2) The control on your tablPage has the Anchor set to Right.. If you have Right then the horizontal scrollbar will not be shown.
3) You have nested control and the wrapper control that is in the tabPage. That wrapper control is not exceeding the tab page bounds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With