hi all
Im trying to set a timer to the enabled state on an mdi childform.
if i load only one form there is no problem.
but when i load more than one form the timer can't be enabled.
I want to be able to enable the timers separated for each form.
the code i have now.
for (int i =0; i < this.MdiChildren.Length;i++)
{
Form tempChild = (Form)this.MdiChildren[i];
if (this.combo1.Text.ToString() == tempChild.Text.ToString())
{
MessageBox.Show(tempChild.Name.ToString());
MessageBox.Show(tempChild.Controls[0].Name.ToString());
MessageBox.Show(tempChild.Controls.Count.ToString( ));
}
else
{
MessageBox.Show("select a start program");
}
}
But it seems that a timer is'nt a control.
there are 2 controls on that form
a datagrid and a timer.
Why won't it show the timer?
or might there be another way to do this
regards Maarten