A
Acchu
Hi,
i'm seeing red x in our application toolstrip when it fails to paint
the tool strip. we could not understand as to why the system.drawing
is throwing an exception. i'm using the .NET ToolStrip control.
can someone explain me what is the reason behind the System.Drawing
throwing exception.
Thanks & Regards
Aswin.N.Paranji
here is the exception trace.
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1,
Int32 x2, Int32 y2)
at
System.Windows.Forms.ToolStripProfessionalRenderer.OnRenderToolStripBorder
(ToolStripRenderEventArgs e)
at System.Windows.Forms.ToolStripRenderer.DrawToolStripBorder
(ToolStripRenderEventArgs e)
at System.Windows.Forms.ToolStrip.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling
(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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)
i'm seeing red x in our application toolstrip when it fails to paint
the tool strip. we could not understand as to why the system.drawing
is throwing an exception. i'm using the .NET ToolStrip control.
can someone explain me what is the reason behind the System.Drawing
throwing exception.
Thanks & Regards
Aswin.N.Paranji
here is the exception trace.
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1,
Int32 x2, Int32 y2)
at
System.Windows.Forms.ToolStripProfessionalRenderer.OnRenderToolStripBorder
(ToolStripRenderEventArgs e)
at System.Windows.Forms.ToolStripRenderer.DrawToolStripBorder
(ToolStripRenderEventArgs e)
at System.Windows.Forms.ToolStrip.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling
(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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)