Reputation: 26919
what is the best idea/technique to do this and I prefer not to create all these at run time and not using the Tabs control:
let's say we have three radio buttons on the form and based on the user selection we want to show him different GUI stuff ( checkbox, listbox, etc ... ) on the same form.
How to do that?
Upvotes: 1
Views: 2665
Reputation: 27486
Controls have a Visible property, that makes the control disappear when it is set to False. When a button is clicked, you could write some code that sets certain controls to be invisible.
Upvotes: 2
Reputation: 887235
Set the controls' Visible
property to false
.
This will be easiest to do if you put the controls on different panels and show / hide the panels instead of hiding each control separately.
Upvotes: 4