How to enable ALL controls on a form?

前端 未结 5 601
清歌不尽
清歌不尽 2021-01-03 00:08

Currently I have most of my form\'s controls disabled at launch because you cannot use them until a file is loaded. However, once the file is loaded the controls should beco

5条回答
  •  滥情空心
    2021-01-03 00:26

    Put all controls in a panel;

    panel.enable = false -> all controls in the panel will be disabled panel.enable = true -> all controls in the panel will be enabled (if they are in default enabled, shortly fill your panel with enabled controls, let your panel disabled so that your controls will be disabled, too. After enabling panel, your controls will be enabled )

提交回复
热议问题