Hi,
I inserted the code into the Dispose method and it works for the case I described earlier. However, now if I pin the docked control, then unpin the docked control and close the app I get an exception (see attached zip file for project and exception - exception.bmp). Any help you can give me will be greatly appreciated.
Thanks,
Will
>Hi Will,
>
>You could use the following code in the Form2 closing event to dispose the docking manager while closing the form:
>
>
>IEnumerator ienum = this.dockingManager1.Controls;
> ArrayList dockedctrls = new ArrayList();
>
> while(ienum.MoveNext())
> dockedctrls.Add(ienum.Current);
>
> foreach(Control ctrl in dockedctrls)
> {
> this .dockingManager1.SetEnableDocking(ctrl, false);
> ctrl.Dispose();
> }
>
> this.dockingManager1.Dispose();
>
>
>This application crashing issue is caused by improper disposing of docking manager. I hope this resolves your problem and let me know if you have any questions.
>
>Thanks for using Syncfusion Products.
>
>Regards,
>Vijay
WindowsApplication23.zip