Check if child radform is alreay open

2 posts, 0 answers
  1. Karl
    Karl avatar
    226 posts
    Member since:
    Jun 2005

    Posted 26 Nov 2011 Link to this post

    Hi,
    Does anyone have a code snipped to check if a child radform is already open?
    Thank you

  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 30 Nov 2011 Link to this post

    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.

Back to Top