Questions tagged [flowlayoutpanel]

Represents a winforms container that dynamically lays out its contents horizontally or vertically.

Represents a winforms container that dynamically lays out its contents horizontally or vertically very similar to the Java flowlayout containers.

To add controls, you use the Controls property:

flowLayout1.Controls.Add(ctrl); // add a ctrl to the collection

To adjust spacing between the controls, use the control's Margin property:

ctrl.Margin = new Padding(10);
flowLayout1.Controls.Add(ctrl);

For further information: http://msdn.microsoft.com/en-us/library/system.windows.forms.flowlayoutpanel.aspx

334 questions
-1
votes
3 answers

Nested layouts - FlowLayout inside BoxLayout

I have a controlPanel (BoxLayout): controlPanel.setLayout(new BoxLayout(controlPanel, BoxLayout.Y_AXIS)); Now I build two FlowLayout and add them to the contolPanel panel: JPanel fromDatePanel = new JPanel(new FlowLayout()); JPanel untilDatePanel =…
Maroun
  • 94,125
  • 30
  • 188
  • 241
-2
votes
1 answer

Dragdrop usercontrol to flowlayoutpanel in winforms

I'm building a drag/drop application in winforms c#, i need to drag a usercontrol and drop it to a flowlayoutpanle. everything works fine, except the drop location, the flowpanel sets the droped items side by side. how can I set the droped item to…
Arh Hokagi
  • 170
  • 5
  • 21
-2
votes
1 answer

Any way to optimize populating tableLayoutPanel?

I have a tableLayoutPanel that I use with a Windows Form. The control is populated from a datatable which holds sql server data. I've already confirmed that the select statement is not the issue. The datatable is frequently updated, so the…
-2
votes
1 answer

Flow layout panel - how to animate

I am developing windows form application. In that I am using FlowLayoutPanel. I am placing all the controls inside that FlowLayoutPanel panel. I am interested in doing something like the windows 8 home screen. I would place the controls inside the…
1 2 3
22
23