Making four versions of a dialog's layout

curiouswebster used Ask the Experts™
In the past, I recall laying out controls then hiding them until the correct values were entered into the visible controls. This time I need to have four groups of controls (GroupBox?) and displaying one group at a time.  Most controls are not shared and could imagine having a group box with controls in, with three groups hidden at any given time.

Does this make sense?  Can I hide the group by changing the Show property of the Group Box?

How about location?  Is it as simple as changing the locations of the one I want so I can move it to the main part of the dialog?

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009
Commented: can simply change the Visible() property of the GroupBox(es) to hide/show them.  Setting the Location() property should work.  Just be careful during  design-time so that you don't drop one GroupBox inside of another.
curiouswebsterSoftware Engineer



Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial