问题描述
我使用Tag属性存储控件的ArrayList,它运行良好.但是我尝试使用Controls属性来代替,通过它我可以在不使用ArrayList的情况下向其中添加控件,我想使用Tag属性来存储其他控件.更改后,我无法使我的应用程序像以前一样运行.我认为Controls属性可能需要学习一些特殊说明.你能告诉我它是否有明显的东西!
另外,我怀疑在某些情况下Controls.Add(某些控件)无法成功完成!?
非常感谢!
I used Tag property to store an ArrayList of controls, it worked well. But I tried using Controls property instead, with it I can add a control to without needing an ArrayList, I wanted to use Tag property to store others. After changing I can''t make my application run as before. I think Controls property may have some special notes to learn. Could you please tell me if it has something noticeable!
Plus, I am suspecting that there is some case that Controls.Add(some control) can''t be done successfully!?
Thank you so much!
推荐答案
这篇关于使用Controls属性时是否有任何通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!