L
Linas Mikutaitis
Hi all,
There was my post about this problem some time ago but since I got no
replies I've decided to repost it.
I have a DataGrid control added to form and it crashes on displaying with
following error message:
************** Exception Text **************
System.ArgumentException: Invalid parameter used.
at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y,
Int32 width, Int32 height)
at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
at System.Windows.Forms.DataGridParentRows.PaintBorder(Graphics g,
Rectangle bounds)
at System.Windows.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,
Int16 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)
my specs: Windows 2000 SP4, .NET Framework 1.0 SP3, MS Office Professional
Edition 2003
This problems exists on every Win2k machine we've tested.
I haven't found any reasonable workaround for this problem. Also I've
noticed some posts about the same problem in
MS Project 2003 COM Add-in, so this must be general MS Office 2003/.NET COM
Add-ins problem.
Maybe somebody from MS would have any info about it?
thanks
Linas
There was my post about this problem some time ago but since I got no
replies I've decided to repost it.
I have a DataGrid control added to form and it crashes on displaying with
following error message:
************** Exception Text **************
System.ArgumentException: Invalid parameter used.
at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y,
Int32 width, Int32 height)
at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
at System.Windows.Forms.DataGridParentRows.PaintBorder(Graphics g,
Rectangle bounds)
at System.Windows.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,
Int16 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)
my specs: Windows 2000 SP4, .NET Framework 1.0 SP3, MS Office Professional
Edition 2003
This problems exists on every Win2k machine we've tested.
I haven't found any reasonable workaround for this problem. Also I've
noticed some posts about the same problem in
MS Project 2003 COM Add-in, so this must be general MS Office 2003/.NET COM
Add-ins problem.
Maybe somebody from MS would have any info about it?
thanks
Linas