Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
ApplicationMenu2010.DropDown() Get NullReferenceException
posted

when the code run to "  ultraToolbarsManager1.Ribbon.ApplicationMenu2010.DropDown(); "

get the NullReferenceException ,the details are:

 

System.NullReferenceException was unhandled by user code
  Message=Object reference not set to an instance of an object.
  Source=Infragistics2.Win.UltraWinToolbars.v10.3
  StackTrace:
       at Infragistics.Win.UltraWinToolbars.BackStageMenuAgent.GetElementRectRelativeToContainer(UIElement element, Control container)
       at Infragistics.Win.UltraWinToolbars.BackStageMenuAgent.CalculateRequiredDropDownSize(Size& minSize, Size& preferredMinSize, Size& preferredSize, Size& maxSize)
       at Infragistics.Win.UltraWinToolbars.BackStageMenuAgent.GetPopupControl()
       at Infragistics.Win.UltraWinToolbars.BackStageMenuAgent.DropDown(Rectangle fileMenuButtonRect, Boolean resetActiveContentTool)
       at Infragistics.Win.UltraWinToolbars.BackStageMenuAgent.DropDown(Rectangle fileMenuButtonRect)
       at Infragistics.Win.UltraWinToolbars.ApplicationMenuAgentBase.DropDown()
       at Infragistics.Win.UltraWinToolbars.ApplicationMenuBase.DropDown()
       at WindowsFormsApplication1.Form1.Form1_Load(Object sender, EventArgs e) in D:\My Documents\My Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 22
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.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)
  InnerException:

Parents
No Data
Reply Children