开发者

GUI Design: Hide/Show controls at run time

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜