开发者

GUI Design: Hide/Show controls at run time

开发者 https://www.devze.com 2023-01-08 10:48 出处:网络
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:

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

精彩评论

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