在VB中禁用网格-怎么做? [英] Disabling grid in VB - how?

查看:117
本文介绍了在VB中禁用网格-怎么做?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用按钮(放置在网格中),并在单击特定按钮时将其激活,然后又一个接一个地进行操作?例如,我们在网格上有100个按钮.
没有找到启用/禁用整个网格的方法.

How is it possible disable buttons (that placed in grid) and they activated on a specific button click, and avoing doing it one by one? For example we have 100 buttons on the grid.
Didn''t found a way to enable/disable whole grid. Possibly there''s more elegant way to do it?

推荐答案

怎么可能?所有控件都具有读/写属性Enabled,请参见 http://msdn .microsoft.com/en-us/library/system.windows.forms.control.aspx [ http://msdn.microsoft. com/en-us/library/system.windows.controls.control.aspx [
How come? All controls have the read/write property Enabled, see http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx[^]; in WPF, this is IsEnabled, see http://msdn.microsoft.com/en-us/library/system.windows.controls.control.aspx[^].

—SA


这篇关于在VB中禁用网格-怎么做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆