I am using Telerik Ribbon on my Application's Main Form. which I call from the Login Form within a Separate Thread (i.e. I start a thread, and within that thread, I load Main Form) using Application.Run(new frmMain()). On Main Form's Load Event, I am selecting a tab of Back Stage View dynamically. using following code
mainRibbon.BackstageControl.SelectedItem = bsvTabAccount;
mainRibbon.BackstageControl.ShowPopup(new System.Drawing.Point(0, 56), mainRibbon.RibbonBarElement);
My problem is, if I hit Enter key on back stage view, application throws exception which states,
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.WinControls.UI.BackstageViewElement.ProcessKeyboardSelection(Keys keyCode)
at Telerik.WinControls.UI.RadRibbonBarBackstageView.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.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)
Note: Exception does not appear if I click any tab of back stage view before I press Enter key.
Any help would be highly appreciated.
mainRibbon.BackstageControl.SelectedItem = bsvTabAccount;
mainRibbon.BackstageControl.ShowPopup(new System.Drawing.Point(0, 56), mainRibbon.RibbonBarElement);
My problem is, if I hit Enter key on back stage view, application throws exception which states,
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.WinControls.UI.BackstageViewElement.ProcessKeyboardSelection(Keys keyCode)
at Telerik.WinControls.UI.RadRibbonBarBackstageView.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.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)
Note: Exception does not appear if I click any tab of back stage view before I press Enter key.
Any help would be highly appreciated.