How to identify TextBox,RadioButtons if they are not class properties?
I would like to ask about form elements like TextBox or RadioButtons, can I identify their content by some other way than with inner class properties. I mean that they are generated dynamicly and I can not know what class properties to create for them, so how to find what are their values.
Example:
class MyClass: Form{
MyClass(ArrayList a){
for(int i=0;i<a.Count;i++){
TextBox t = new TextBox();
t.Text = a.get_Item(i);
t.Dock = DockStyle.Top;
this.Controls.Add(t);
}
}
void Run(){
// How can I find the content of my TextBoxes here?
}
}
Thanks
I would like to ask about form elements like TextBox or RadioButtons, can I identify their content by some other way than with inner class properties. I mean that they are generated dynamicly and I can not know what class properties to create for them, so how to find what are their values.
Example:
class MyClass: Form{
MyClass(ArrayList a){
for(int i=0;i<a.Count;i++){
TextBox t = new TextBox();
t.Text = a.get_Item(i);
t.Dock = DockStyle.Top;
this.Controls.Add(t);
}
}
void Run(){
// How can I find the content of my TextBoxes here?
}
}
Thanks