S
Spencer Wasden
I want to determine if a control on a form is a TextBox type. I would like
to do something like the following WITHOUT doing a string comparison.
foreach (Control c in this.Controls){
if (c.GetType().ToString() == "System.Windows.Forms.TextBox" ){
MessageBox.Show(c.Text);
}
}
Is this possible?
Thank you
to do something like the following WITHOUT doing a string comparison.
foreach (Control c in this.Controls){
if (c.GetType().ToString() == "System.Windows.Forms.TextBox" ){
MessageBox.Show(c.Text);
}
}
Is this possible?
Thank you