C
Chuck Cobb
I have an application that uses a VB.Net DLL that is launched from Visio.
It has worked fine with Visio2000 and 2002 for some time, but we've just
begun seeing a problem with Visio 2003. When the application tries to paint
a form that contains a datagrid, we get the following error:
System.ArgumentException: Invalid parameter used
At System.Drawing.Graphics.CheckErrorStatus(Int32 status)
At System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x,
Int32 y, Int32 width, Int32height)
At System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle
rect)
At System.Drawing.Forms.DataGridParentRows.Paint(Graphics g,
Rectangle visualbounds, Boolean alignRight)
At System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe)
At
System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int 16
layer, Boolean disposeEventArgs)
At System.Windows.Forms.Control.WmPaint(Message& m)
At System.Windows.Forms.Control.WndProc(Message& m)
At System.Windows.Forms.ControlNativeWindow.OnMessage(Message
&m)
At System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
At System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam
I've tried replicating the problem on three other systems with Visio 2003
and have been unable to reproduce the problem...it is only happening on a
customer site and only happens with Visio 2003 in the system...it works fine
with Visio 2002. I've seen a similar problem occur when data is changing in
the datagrid control when it is attempting to paint the form, but I'm sure
that is not the case here.
Has anyone seen this problem?
Thanks,
Chuck Cobb
It has worked fine with Visio2000 and 2002 for some time, but we've just
begun seeing a problem with Visio 2003. When the application tries to paint
a form that contains a datagrid, we get the following error:
System.ArgumentException: Invalid parameter used
At System.Drawing.Graphics.CheckErrorStatus(Int32 status)
At System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x,
Int32 y, Int32 width, Int32height)
At System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle
rect)
At System.Drawing.Forms.DataGridParentRows.Paint(Graphics g,
Rectangle visualbounds, Boolean alignRight)
At System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe)
At
System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int 16
layer, Boolean disposeEventArgs)
At System.Windows.Forms.Control.WmPaint(Message& m)
At System.Windows.Forms.Control.WndProc(Message& m)
At System.Windows.Forms.ControlNativeWindow.OnMessage(Message
&m)
At System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
At System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam
I've tried replicating the problem on three other systems with Visio 2003
and have been unable to reproduce the problem...it is only happening on a
customer site and only happens with Visio 2003 in the system...it works fine
with Visio 2002. I've seen a similar problem occur when data is changing in
the datagrid control when it is attempting to paint the form, but I'm sure
that is not the case here.
Has anyone seen this problem?
Thanks,
Chuck Cobb