This is a migrated thread and some comments may be shown as answers.

Check if child radform is alreay open

1 Answer 26 Views
Form
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 26 Nov 2011, 12:41 PM
Hi,
Does anyone have a code snipped to check if a child radform is already open?
Thank you

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Nov 2011, 08:53 AM
Hi Karl,

Thank you for writing.

I suppose that the you asking for an MDI scenario?  Please refer to the code below:

private bool CheckChildForm1IsOpen()
{
foreach (Form frm in MdiChildren)
      if (frm.GetType() == typeof(Form1)) return true;
 
return false;
}

I hope this helps. Kind regards,
Peter
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Tags
Form
Asked by
Karl
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or