c# - Tabpage not resizing on minimize/ maximimize -
hi have windows form in application tab control inside it. have noticed when restore application taskbar after minimizing it, tabpage shrinks half it's normal size , controls inside move downwards. have tabpage docked fill inside tablepanellayout. tabs stay in place though. not happen upon resizing form. please help.
this relevant code designer.cs file
// // tabcontrol1 // this.tabcontrol1.appearance = system.windows.forms.tabappearance.flatbuttons; this.tabcontrol1.controls.add(this.tabpage1); this.tabcontrol1.controls.add(this.tabpage2); this.tabcontrol1.controls.add(this.tabpage3); this.tabcontrol1.controls.add(this.lookuptab); this.tabcontrol1.controls.add(this.tabpage4); this.tabcontrol1.dock = system.windows.forms.dockstyle.fill; this.tabcontrol1.itemsize = new system.drawing.size(71, 35); this.tabcontrol1.location = new system.drawing.point(3, 110); this.tabcontrol1.multiline = true; this.tabcontrol1.name = "tabcontrol1"; this.tabcontrol1.selectedindex = 0; this.tabcontrol1.size = new system.drawing.size(1453, 601); this.tabcontrol1.tabindex = 0; this.tabcontrol1.selectedindexchanged += new system.eventhandler(this.tabcontrol1_selectedindexchanged); // // tabpage1 // this.tabpage1.borderstyle = system.windows.forms.borderstyle.fixedsingle; this.tabpage1.controls.add(this.panel2); this.tabpage1.location = new system.drawing.point(4, 39); this.tabpage1.name = "tabpage1"; this.tabpage1.padding = new system.windows.forms.padding(3); this.tabpage1.righttoleft = system.windows.forms.righttoleft.no; this.tabpage1.size = new system.drawing.size(1445, 558); this.tabpage1.tabindex = 0; this.tabpage1.text = "settings"; this.tabpage1.usevisualstylebackcolor = true; // // tabpage2 // this.tabpage2.controls.add(this.label5); this.tabpage2.controls.add(this.label4); this.tabpage2.controls.add(this.label2); this.tabpage2.location = new system.drawing.point(4, 39); this.tabpage2.name = "tabpage2"; this.tabpage2.padding = new system.windows.forms.padding(3); this.tabpage2.size = new system.drawing.size(1445, 558); this.tabpage2.tabindex = 1; this.tabpage2.text = "calibration"; this.tabpage2.usevisualstylebackcolor = true;
i found wrong. posting here in case else has same problem. set this.tabcontrol1.multiline = true;
false , problem disappeared.
Comments
Post a Comment