Channel 8:
Five Windows Vista Tips to hold you over until Windows 7
WindowsClient:
Depth vs. width in ADO.NET Data Services $expand
Channel 10:
Sarah Lane - Raw and Uncut
WindowsClient:
ComponentArt - Holiday Sale !
Channel 9:
Rico Mariani: Visual Studio Today, Tomorrow and Beyond
Silverlight:
Simple Expander – Silverlight Toolkit
Channel 10:
Mount SkyDrive As A Virtual Drive In Windows
TechNet Edge:
Active Directory Group Policy Object (GPO) Delegation and Approval Workflow With AGPM 3.0 in MDOP 2008 R2
Channel 10:
Pandora Sidebar Gadget
Silverlight:
SandDock for Silverlight – Commercial floating windows
Channel 8:
Office 2007 Home & Student Edition for $70..go grab
Channel 8:
Building the connected enterprise - Exchange Server and Microsoft Office
Silverlight:
On C# and VB
Channel 10:
MSN To Host Launch Of (RED)Wire
Channel 10:
Netbooks With Style
Channel 10:
Evernote’s New Windows Mobile App
Channel 9:
This Week on C9: The Thanksgiving Episode
Channel 10:
Happy Thanksgiving!
TechNet Edge:
SQL Server Virtualization
TechNet Edge:
Forefront Server for Exchange v2 features
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online
Welcome to WindowsClient.net
|
Sign in
|
Join
Home
Get Started
Learn
Forums
Downloads
Community
Home
>
Learn
>
Windows Forms FAQs
Here are some frequently asked questions about Windows Forms and their answers.
Windows Forms FAQs
What are all the size properties for FlowLayoutPanel?
MinimumSize
: the bare minimum size a control can be set to
MaximumSize
: the maximum size a control can be set to
PreferredSize
: the size a control prefers to be - this is implemented by calling GetPreferredSize(0,0)
AutoSize
: Boolean specifying whether or not the control should be set to it's preferred size
public virtual Size
GetPreferredSize
(Size constrainingSize) - This method returns the "preferredSize" of the control given some size contstraints. If the size passed in is 0 in any dimension or Int32.MaxValue, this implies that the size is not constrained in that dimension.
GetPreferredSize(0,0) Unconstrained in width,height
GetPreferredSize(0,h) Constrained in height by "h", unconstrained in width
GetPreferredSize(w,0) Constrained in width by "w", unconstrained in height
GetPreferredSize(w,h) Constrained in width by "w", constrained in height by "h"