Just got a bug report in our software, where it appears the user clicked a KryptonTab page with .Visible = false. Somehow, the tab showed up in the UI and the user clicked it, resulting in an exception:
ArgumentNullException
Message = Cannot select a page that is not visible
Parameter name: value
User Comments: was on a note, and the "History" tab in preview tabbed info was visible (no idea why)...so, i clicked on it...
Stacktrace:
at ComponentFactory.Krypton.Navigator.KryptonNavigator.set_SelectedPage(KryptonPage value)
at gu.b(Object A_0, EventArgs A_1)
at dt.b(Object A_0, EventArgs A_1)
at ComponentFactory.Krypton.Toolkit.ButtonController.OnClick(MouseEventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewManager.MouseDown(MouseEventArgs e, Point rawPt)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.OnMouseDown(MouseEventArgs e)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.WndProc(Message& m)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ParamName=value
Data=System.Collections.ListDictionaryInternal