Hi,
we are using Syncfusion 9.302.0.61
under some reproducable circumstances we get an error when we activate a control within the dockingmanager:
"System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="Syncfusion.Tools.Windows"
StackTrace:
at Syncfusion.Windows.Forms.Tools.AHTabControl.SetClientControlSize(DockStateControllerBase ddcbase, Rectangle rcbounds)
at Syncfusion.Windows.Forms.Tools.AHTabControl.StopShowAnimation()
at Syncfusion.Windows.Forms.Tools.AHTabControl.ShowController(DockStateControllerBase ddcbase, Boolean banimate, Boolean bActivateAfterShow)
at Syncfusion.Windows.Forms.Tools.DockingManager.ActivateControl(Control ctrl)"
In the Dockingmanager, we have a grid. And whenever a row is added to the grid, the panel containing the grid shall be shown.
Works good, except when we add rows and immediately toggle the AutoHide-Option manually from the dockingmanagers context menu. Then, the exception above raises up.
The control-parameter is always the same, so is the dockingmanager. I cannot see which object is not instanciated as it seems to me to be inside Syncfusion.
For a workaround, i wrapped the ActivateControl-Call up in a try-catch. This is not elegant.
Is there a way to check if I can activate a control within the dokingmanager (e.g, "CanActivateControl(ctrl)")?
btw: what is AHTabControl?
Thanks
Sascha