We have a problem with VintaSoftTwain disabling visual styles in our application. This is causing the DevComponents DotNetBar controls to crash when being redrawn.
Here is the message/stack trace:
Visual Styles-related operation resulted in an error because visual styles are currently disabled in the client area.
Code: Select all
at System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsCombinationDefined(String className, Int32 part)
at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor(String className, Int32 part, Int32 state)
at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor(VisualStyleElement element)
at DevComponents.DotNetBar.ᲆ.(Graphics ؽ, String ڰ, Font ร, Rectangle ࣋, ื , Color ฮ, Boolean , Boolean , Int32 )
at DevComponents.DotNetBar.ᲆ.(Graphics ؽ, String ڰ, Font ร, Rectangle ࣋, ื )
at DevComponents.DotNetBar.ᲆ.Ბ(Graphics ؽ, String ڰ, Font ร, Rectangle ಗ, Boolean Გ)
at DevComponents.DotNetBar.ᲆ.PaintCaptionText(RibbonControlRendererEventArgs e)
at DevComponents.DotNetBar.Rendering.Office2007Renderer.DrawRibbonFormCaptionText(RibbonControlRendererEventArgs e)
at DevComponents.DotNetBar.RibbonStrip.PaintControlBackground(ItemPaintArgs pa)
at DevComponents.DotNetBar.ItemControl.PaintControl(ItemPaintArgs pa)
at DevComponents.DotNetBar.ItemControl.ਓ(PaintEventArgs ظ, Boolean ਔ)
at DevComponents.DotNetBar.ItemControl.ਏ(PaintEventArgs ظ)
at DevComponents.DotNetBar.Office2007RibbonForm.ᩏ()
at DevComponents.DotNetBar.Office2007RibbonForm.WindowsMessageNCActivate(Message& m)
at DevComponents.DotNetBar.Office2007RibbonForm.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)
Has anyone come across this problem before?
Thanks,
Andy