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

Opening Child Form Twice Bug

1 Answer 73 Views
Dock
This is a migrated thread and some comments may be shown as answers.
TwoLaJit
Top achievements
Rank 2
TwoLaJit asked on 17 May 2009, 03:12 AM
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

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 18 May 2009, 10:30 AM
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.
Tags
Dock
Asked by
TwoLaJit
Top achievements
Rank 2
Answers by
Nick
Telerik team
Share this question
or