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
230
Object reference null error occur when we double click on WinToolbar
posted

Hi

We have windows form application and we have create a base class for every form and in that base class we create WinToolbar. whenever i click on my Application Form icon on left side this gives me below error.



Error Details:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.Infragistics.Win.UltraWinToolbars.IToolbarsManager.ResolveFormBorderAppearance(AppearanceData& appearance, AppearancePropFlags& requestedProps)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockAreaResizeUIElement.InitAppearance(AppearanceData& appearance, AppearancePropFlags& requestedProps)
   at Infragistics.Win.UIElement.InitializeDrawAppearance(AppearanceData& defaultAppearance, AppearanceData& appearance)
   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)
   at Infragistics.Win.UIElement.DrawChildElements(UIElementDrawParams& drawParams)
   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams& defaultDrawParams)
   at Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics)
   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize, Boolean preventAlphaBlendGraphics)
   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)
   at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnPaint(PaintEventArgs pe)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.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)
Parents
No Data
Reply
  • 2575
    Offline posted

    Hello,

    I cannot reproduce the issue with the information you have provided. Please provide a small, isolated sample which reproduces the issue, which will allow me to see how the UltraToolBarsManager is implemented and investigate why this issue is occurring.

Children
No Data