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
1300
Unhandled exception after right clicking on Form to open the ControlBox.
posted

I am not sure whether I am logging in a right forum. As this is related to ControlBox on Form I am logging it here.

When I right click on the form at the icon area to show the control box, after the control box is shown clicking anywhere else on the form or on control box context menu item is giving an exception.

Note: The form is having an UltraFormManager & a custom icon.

Seeing the call stack, if you give any hints on possible reason it will be help full to us.

Attached is the exception snapshot.

Call Stack captured from the exception:

************** Exception Text **************

System.ArgumentNullException: Value cannot be null.

Parameter name: container

   at System.Windows.Forms.Timer..ctor(IContainer container)

   at Infragistics.Win.WinTimer..ctor(IContainer container)

   at Infragistics.Win.Utilities.CreateTimer(IContainer container)

   at Infragistics.Win.UltraWinForm.UltraFormManager.StartControlBoxDoubleClickTimer()

   at Infragistics.Win.UltraWinForm.UltraFormManager.ShowSystemMenu(Point screenPoint, Boolean controlBox, Form form, Rectangle exclusionRect, Boolean showMenuUp)

   at Infragistics.Win.UltraWinForm.UltraFormManager.ShowSystemMenu(Point screenPoint, Boolean controlBox, Form form, Rectangle exclusionRect)

   at Infragistics.Win.UltraWinForm.UltraFormManager.ShowSystemMenu(Form form, Rectangle exclusionRect)

   at Infragistics.Win.UltraWinForm.ControlBoxUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)

   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)

   at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e)

   at Infragistics.Win.UltraWinForm.UltraFormDockArea.OnMouseDown(MouseEventArgs e)

   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

   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)

  • 469350
    Offline posted

    Hi, 

    My first guess is that this is a bug in the version of the UltraFormManager you are using. The obvious solution, therefore, would be to get the latest service release and see if that helps.

    How to get the latest service release - Infragistics Community

    If that does not help, then I am out of ideas. If you can reproduce the exception in a small sample project and post it here, we could look into it and get it resolved.