反复快速调整窗体大小,造成ListViewEx也快速调整大小,会抛出溢出错误.
System.OverflowException: 溢出错误。
   在 System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   在 System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
   在 System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
   在 DevComponents.DotNetBar.Presentation.c0001a5.PaintFill(Graphics g, Rectangle r)
   在 DevComponents.DotNetBar.Presentation.c0001a5.Paint(c0001a3 p)
   在 DevComponents.DotNetBar.Presentation.c00019c.Paint(c0001a3 p)
   在 DevComponents.DotNetBar.Presentation.c0001a5.Paint(c0001a3 p)
   在 DevComponents.DotNetBar.ScrollBar.c000195.PaintTrackHorizontal(Graphics g, Rectangle bounds, enum000198 state)
   在 DevComponents.DotNetBar.ScrollBar.ScrollBarCore.Paint(ItemPaintArgs p)
   在 DevComponents.DotNetBar.Controls.c00018d.PaintNonClientArea(Graphics g)
   在 DevComponents.DotNetBar.Controls.c00018d.m0003b3()
   在 DevComponents.DotNetBar.Controls.c00018d.WindowsMessageNCPaint(Message& m)
   在 DevComponents.DotNetBar.Controls.c00018d.WndProc(Message& m)
   在 DevComponents.DotNetBar.Controls.ListViewEx.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
posted @ 2010-04-06 19:25 丽魅 阅读(172) 评论(0) 编辑

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
或者 未在本地计算机上注册“Microsoft.Jet.Oledb.4.0”提供程序

原因:没有64位的Microsoft.Jet.Oledb.4.0提供程序
解决:在编译软件时将目标平台(CPU)设置为X86。
方法:
C# 项目属性-》生成-》目标平台,设置为X86
VB 项目属性-》编译-》高级编译选项-》设置目标CPU为X86

posted @ 2010-04-06 18:54 丽魅 阅读(531) 评论(1) 编辑