We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Toggling the value of DockingManager.AutoHideEnabled or DockingManager.CloseEnabled causes exceptions

Thread ID:





59673 Apr 19,2007 03:59 PM UTC Apr 24,2007 03:51 AM UTC WinForms 3
Tags: Tools
Bob Krier
Asked On April 19, 2007 03:59 PM UTC

In both 4.4 and the new 5.1 beta, if you have a dockingmanager and a tabbedmdimanager on a form (like in the VSDemo_2003 sample project), if you toggle either the CloseEnabled, or AutoHideEnabled, you get an exception.

The problem only reveals itself if you have a control that was docked and gets dragged into the MDI tab area. Then you get this stack trace, where it looks like the code is referencing an element of an array without making sure the array is non-empty.

Stack Trace:
Unhandled Exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Index 0 is out of range.
at System.Windows.Forms.ControlCollection.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Tools.DockingManager.set_AutoHideEnabled(Boolean value)
at VSDemo.VSMainForm.barItem1_Click(Object sender, EventArgs e) in c:\program files\syncfusion\essential studio\\windows\tools.windows\samples\featured samples\vsdemo\cs\vsmainform.cs:line 241
at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs args)
at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.NotifyItem(BarItem item)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.HidePopup(PopupCloseType popupCloseType)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.ProcessItemClick(BarItem item)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.ScrollControl.WmMouseUp(Message& msg)
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at VSDemo.VSMainForm.Main() in c:\program files\syncfusion\essential studio\\windows\tools.windows\samples\featured samples\vsdemo\cs\vsmainform.cs:line 2164The program '[2868] VSDemo.exe' has exited with code 0 (0x0).

Poly J [Syncfusion]
Replied On April 20, 2007 10:18 AM UTC

Hi Bob,

Thanks for bringing this issue to our attention. We are able to reproduce this issue. Could you please create a direct- trac incident with Subject Line : "Toggling the value of DockingManager.AutoHideEnabled or DockingManager.CloseEnabled causes exceptions : F 59673"? We will update you about the bug fix details through our Direct-trac system.

Thanks for using Syncfusion products,

Best Regards,

Bob Krier
Replied On April 23, 2007 04:08 PM UTC

I have already added a Direct-Trac, #33437. Thanks.

Poly J [Syncfusion]
Replied On April 24, 2007 03:51 AM UTC

Hi Bob,

Thanks for the update. We will send you the bug fix details through our Direct-trac System.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon