I have a bunch of buttons of different sizes in a FlowLayoutPanel. I removed the margins but there seems to be a default grid-style layout. How can I make it so that the buttons all stick together?
I would like to remove the space between "Algebra" and the button above, sticking them as close together as possible.
By default, a FlowLayoutPanel lays outs its controls in rows from left to right, then top to bottom. In your example, the buttons have the same width but different heights, so a gap appears. To remove the gap, you can tell the FlowLayoutPanel to lay out its controls in columns from top to bottom, then left to right: