D
Dan Soendergaard
I have this code:
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls is ValidationTextBox)
{
// Change the property of the control here.
}
}
ValidationTextBox is a control which derives from TextBox. It contain
some custom properties, among them: ValidValueColor.
As you see, I'm trying to change a property of all instances of
ValidationTextBox in my form. When I tried to do
this.Controls.ValidValueColor, I found out that the property wasn't
available. How can I access the custom properties from the
ValidationTextBox?
Thanks in advance!
Dan
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls is ValidationTextBox)
{
// Change the property of the control here.
}
}
ValidationTextBox is a control which derives from TextBox. It contain
some custom properties, among them: ValidValueColor.
As you see, I'm trying to change a property of all instances of
ValidationTextBox in my form. When I tried to do
this.Controls.ValidValueColor, I found out that the property wasn't
available. How can I access the custom properties from the
ValidationTextBox?
Thanks in advance!
Dan