启用和禁用不同形式的控件 [英] enable and disable control from different form
本文介绍了启用和禁用不同形式的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在form1中:
In form1 :
展开 | 选择 | Wrap | 行号
推荐答案
嗨
解决这个问题的一种方法是在form2的构造函数中添加对form1的引用,然后可以将它放在form2类的变量中。
In form2类:
Hi
One way around this is to add a reference to form1 in form2''s constructor, you can then place that in a variable inside the form2 class.
In the form2 class:
展开 | 选择 | Wrap | 行号
也请阅读此主题中的所有回复。
Please also read all the responses in this thread.
@ cloud255
@cloud255
展开 | 选择 | Wrap | 行号
这篇关于启用和禁用不同形式的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文