Opening Child Form Twice Bug

2 posts, 0 answers
  1. TwoLaJit
    TwoLaJit avatar
    38 posts
    Member since:
    Nov 2006

    Posted 16 May 2009 Link to this post

    I am using RadControls_WinForms_2009_1_414_dev

    On my Main MDI form I have on Load:

     Me.IsMdiContainer = True
     dockingManager1.AutoDetectMdiChildForms = True


    On a button to open a form I have: 

    FormName.MdiParent = Me
    FormName.Show()

    which works great. But When I click on that button again, my form disapears! what gives? is this a feature or a bug? 
    Spend many hours trying to find a work around. 
    Any help is appreicated. 

    Thanks
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 18 May 2009 Link to this post

    Hello TwoLaJit,

    Please use this code:

    If FormName.MdiParent <> Me Then 
        FormName.MdiParent = Me 
        FormName.Show() 
    End If 

    Do not hesitate to write us back if you have further questions.

    Sincerely yours,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top