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 sa开发者_JS百科me form.
How to do that?
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.
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.
精彩评论