控制数组 [英] controls array
问题描述
先生,
i想要在运行时添加控件以及我需要添加多少控件来保持chaing。有时候6次有些4次等等现在我可以添加控件但问题是我想在用户输入一些数据时验证每个控件。我想处理我在运行时添加的控件事件。
i want to add controls at the run time and how many controls i need to add this keep on chaing. some times 6 some times 4 etc. now i can add controls but the problem is i want to validate each control when user entere some data. i want to handle the event of the controls which i added during run time.
我无法追踪事件因为控件是在一个程序中生成的,当一个程序完成后它就会被销毁。
i can not trace the event because the control has been generated in a procedure and when a procedure finish it get destroyed.
有没有替代品解决方案?
is there any alternate solution?
我需要一些帮助subject
i need some help on this subject
推荐答案
A" Control"太具体了,因为没有说控件允许用户输入数据...
例如,如果你在谈论"TextBoxes"您可以轻松地将事件处理程序附加到其验证事件...
Eg, if you're talking about "TextBoxes" you could easily attach an eventhandler to their Validating event...
这篇关于控制数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!