M
Mad Joe
Hi!
I have a window form that contains 4 elements (2x2) on one panel.
Those 4 elements are GroupBoxes of the exact same size, sorted like this:
groupBox1 groupBox2
groupBox3 groupBox4
While resizing a Form window manually, I would like to resize
automatically each groupBox by keeping the same ratio:
Width of each groupBox = 50% of Panel-width
Height of each groupBox = 50% of Panel-height
I'm playing with applying different values to Anchor properties, but
still can't make it right.
Example:
I have a window form that contains 4 elements (2x2) on one panel.
Those 4 elements are GroupBoxes of the exact same size, sorted like this:
groupBox1 groupBox2
groupBox3 groupBox4
While resizing a Form window manually, I would like to resize
automatically each groupBox by keeping the same ratio:
Width of each groupBox = 50% of Panel-width
Height of each groupBox = 50% of Panel-height
I'm playing with applying different values to Anchor properties, but
still can't make it right.
Example: