In my current application, I have to set cettain defaults to controls that are displayed or are used.
so i have a class to which i send the form as a control, and iterate through each of its controls and child controls
However, I have to also edit the Interval property of any timers present in the form.
Timers come under the Windows.Forms.T imer namespace and i am currently iterating through all the Controls in the form.
How would I go about finding Timers in a form?
[CODE=cpp]foreach (Control c in control.Control s)
{
this.applyContr olValues(c);
if (c.HasChildren == true)
this.applyKeySt rokes(c);
}[/CODE]
within applyKeyStrokes i check if the control c is of type text edit, or dropDown list, or gridview, etc
Thankyou
so i have a class to which i send the form as a control, and iterate through each of its controls and child controls
However, I have to also edit the Interval property of any timers present in the form.
Timers come under the Windows.Forms.T imer namespace and i am currently iterating through all the Controls in the form.
How would I go about finding Timers in a form?
[CODE=cpp]foreach (Control c in control.Control s)
{
this.applyContr olValues(c);
if (c.HasChildren == true)
this.applyKeySt rokes(c);
}[/CODE]
within applyKeyStrokes i check if the control c is of type text edit, or dropDown list, or gridview, etc
Thankyou
Comment