I’m creating a GUI and I would like an app that changes on based which item in a treeview or which item is selected on a radio button.
I know how to know which item is selected, but how do i change the interface based on the item?
What should I try? Multiple panels? Some hidden?
Imagine the app like and MMC, the right side changes based on what do i select on right.
I used something like Button1.Visible = true and Button2.Visible = false in the event, but how do I group the elements in the right side?
In the desingner mode I will see every object overlapping others?
Assuming you’re referring to something like a menu (menu options on the left; when one is clicked, the right side of the window is filled with the corresponding settings), just create a separate control for each ‘window’ (non-technical use of the word) on the right. When an entry on the left side is selected, handle the Click event by calling BringToFront() on the corresponding control in the right panel.
If you’re not referring to a menu, and are instead referring to something much more granular (where each selection on the left side operates on the same central display-unit, and each selection may only affect one small portion), then divide the central display-unit into panels, one for each unit that may be affected by the left-side selection, and Show and Hide them according to the left-side selection.