Hello,
i am receiving a NullReferenceException in AutoHideControl. This error only occurs if my form is displaying an MDI control which is a pane of the docking manager.
Error occurs as soon as clicking the Unpin button on a pane that is docked at the right side of the screen.
bei Infragistics.Win.UltraWinDock.AutoHideControl.OnSubObjectPropChanged(PropChangeInfo propChange) bei Infragistics.Shared.SubObjectPropChangeEventHandler.Invoke(PropChangeInfo propChange) bei Infragistics.Shared.SubObjectBase.NotifyPropChange(PropChangeInfo trigger) bei Infragistics.Win.UltraWinDock.DockableControlPane.Unpin() bei Infragistics.Win.UltraWinDock.DockableGroupPane.Unpin() bei Infragistics.Win.UltraWinDock.DockablePaneBase.ProcessButtonClickImpl(PaneButton button, PaneCaptionButtonUIElement buttonElem) bei Infragistics.Win.UltraWinDock.DockablePaneBase.ProcessButtonClick(PaneButton button, PaneCaptionButtonUIElement buttonElem) bei Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e) bei Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e) bei Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) bei Infragistics.Win.ManagedContainerControlBase.OnMouseUp(MouseEventArgs e) bei Infragistics.Win.UltraWinDock.DockControlBase.OnMouseUp(MouseEventArgs e) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Blue
Hello Blue,
Nice to hear this! Thank you for sharing the information with us!
Please feel free to let me know if a question about our tool set comes up on your mind.
Hello Boris,
I tried to modify your sample and was not able to reproduce the error, BUT even better I was able to solve it in my application.
There was some error that was activating the mdi pane right after (or while) the pinned pane would hide after clicking the button, the activation of the mdi pane was forcing the hiding pane to open/pin, which might have causes an error in the AutoHideControl. I just removed the opening/pinning after mdi pane activation and the error was gone.
thanks :)
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.