winforms - c# tabcontrol - tabpage -
i trying add tab page programmatically tabcontrol.
i can no problem, seems when add it, automatically sized 200px in width, , cannot work out how resize it. tabpage created in dll, , returned main client whereby added tabcontrol, when added 200px wide, , further controls add onto tabpage not show if positioned more 200px wide.
any ideas?
thanks.
either change size
property
mytabcontrol.size = new system.drawing.size(400, 400);
or height
/ width
properties
mytabcontrol.height = 400; mytabcontrol.width = 400;
or dock
property
// size tab control take available space in parent container mytabcontrol.dock = dockstyle.fill;
Comments
Post a Comment