Is there any way to make the size of the tab control expand in both hight and width when the entire window is resized? For example, if I initially set the top of the tab control to be about 1 inch below the top of the window and fill the rest of the window I'd like the top to remain where I put it when the window is resized.
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Recommended Answers
Jump to PostHi,
There isn't a property for that, but you can use this in the Form load event:
TabControl1.Dock = DockStyle.Fill
Jump to PostAnchor won't work since you don't want the tabcontrol right to the top, and dockstyle.fill won't work for the same reason.
Here's one way:
In the designer, size the control to reach the bottom of the form and have the top where you want it. Set the dock property to …
All 6 Replies
Luc001
77
Posting Whiz
M.Waqas Aslam
67
Posting Pro in Training
Featured Poster
tinstaafl
1,176
Posting Maven
Ancient Dragon
commented:
thanks
+14
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.