Red X in ToolStrip

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)
 
U

ugk

Hi,,
I am also getting the same issue, seeing a red "X" mark in the TreeViewAdv
control (3rd party control) on windows form when used Refresh() method of
TreeViewAdv control to draw the nodes. Through debug the Tree is able to show
the nodes fine, even If I had put a single break point in the code and
continue. This error happens only when "NO" break point in the code and run.
Tried with invoking the control method to refresh in a seperate control
thread, but no success..
Would appreaicate if any one comes with a solution for this... Thanks!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top