In my winform, I have three group boxes, based on selection of the
items in a combobox the second group box(at the center)
is hidden using groupbox.visible property.
The problem is when the second goupbox is hidden, there
seems to be an empty space in the area of the hidden group box,
I want to move the third group box to the place where second
group box is present. Can I use any other control instead of group box?
In my winform, I have three group boxes, based on selection of the items
Share
You could manually set
LocationandSizeproperties of your third groupbox or (I think better) setDockproperty of both groupboxes toTop, so when your second gb becomes not visible, the third should scroll up to occupy free space.