Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

What properties/methods cause layout?

This lists contains all the "reasons" for layout we pass to the LayoutEventArgs. Usually the strings correspond to the properties.

Alignment ColumnStyles ImageIndex Orientation ShowImageMargin
Anchor Controls ImageScaling PreferredSize ShowCheckMargin
AutoScroll Dock ImageScalingSize Padding Spring
AutoSize DisplayRectangle ImageKey Parent Style
Appearance DisplayStyle ImageAlign RightToLeft TableIndex
AutoEllipsis DrawMode Items RightToLeftLayout Text
BorderStyle DropDownButtonWidth LayoutSettings RowHeadersVisible TextAlign
CellBorderStyle FlatAppearanceBorderSize LinkArea RowHeadersWidth TextImageRelation
Bounds FlatStyle Links Rows UseCompatibleTextRendering
CheckAlign FlowBreak LayoutStyle RowSpan Visible
ChildIndex FlowDirection Location RowStyles WordWrap
ColumnHeadersHeight Font Margin Renderer WrapContents
ColumnHeadersVisible GripStyle MaximumSize ScrollBars  
Columns GrowStyle MinimumSize Size  
ColumnSpan Image Multiline ShowDropDownArrow  

Additionally, anything that plays with the Control collection. These include but are not limited to

  • control.Controls.Add(..)
  • control.Controls.Clear()
  • control.Controls.Remove and RemoveAt
  • control.BringToFront()
  • control.SendToBack()
  • control.Controls.SetChildIndex
  • control.Parent


Page view counter