Check if child radform is alreay open

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

    Posted 26 Nov 2011 Link to this post

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

  2. Peter
    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,
    the Telerik team

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

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top