Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flowlayout and Tablelayout in windows form

What is the difference between Flowlayout and Tablelayout in windows form ? I know i can google it, but i am bit short on time.

my requirement is too , that when the form is resized. Resizing for forms should not mess up my align for the control, it should react to resolution changes.

like image 833
Gainster Avatar asked Apr 27 '11 18:04

Gainster


People also ask

What is Flowlayout panel?

The FlowLayoutPanel control is a container control that provides dynamically layout for the child controls that can be arranged horizontally or vertically. The flow direction of the control sets the direction of arrangements of controls.

What is Panel in Windows form?

Windows Forms Panel controls are used to provide an identifiable grouping for other controls. Typically, you use panels to subdivide a form by function. The Panel control is similar to the GroupBox control; however, only the Panel control can have scroll bars, and only the GroupBox control displays a caption.

Which layout control can set the property of control at runtime?

The TableLayoutPanel control arranges its contents in a grid. Because the layout is done both at design time and run time, it can change dynamically as the application environment changes.


1 Answers

TableLayout will keep your controls in a grid pattern, and will resized to fill the form (if docked to the parent container). A FlowLayout will place controls in a (by default) horizontal line, and wrap the controls to the next line if they don't all fit. The wrapping should happen dynamically as the panel is resized. You can also set it to wrap vertically.

It sounds like you should use a TableLayout.

like image 146
James Allen Avatar answered Sep 30 '22 16:09

James Allen