I am attempting to move from using a standard windows TableLayoutPanel to using a GridBagLayoutPanel as I have a resizable screen and the redraw for the TableLayoutPanel is quite flickery
My problem is that when using the GridBagLayoutPanel, the first rows height is smaller than the rest.
Each control in the panel has had its Origin, Span and weight values input and double checked with great care.
The Panel has a 5x5 matrix layout and there is a mixture of spanning values. all the controls are in their correct position.
Hi,
It's hard to guess why it's not working without seeing it in action.
When are you setting the Origins, Spans, and Weight values? At design-time or run-time? If it's run-time, what event are you using?
Is the height of the UltraGridBagLayoutPanel evenly divisible by the number of rows you have?
Are you setting the PreferredSize on any of the controls on the panel.