Page 1 of 1

VintaSoftTwain disabling visual styles

Posted: Thu Oct 16, 2014 6:01 pm
by marshallandy83
Hi,

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)
Unfortunately, since the DotNetBar code is third-party, I cannot make any changes to it.

Has anyone come across this problem before?

Thanks,

Andy

Re: VintaSoftTwain disabling visual styles

Posted: Fri Oct 17, 2014 8:45 am
by Alex
Hi Andy,

Could you send us a small working project which demonstrates the issue? If yes, please send it to support@vintasoft.com.

Best regards, Alexander

Re: VintaSoftTwain disabling visual styles

Posted: Tue Oct 28, 2014 7:08 pm
by marshallandy83
Hi Alexander,

Thanks for your reply. Unfortunately, unless you have the DotNetBar controls, you will not be able to reproduce the issue, so I don't think sending you an example project would be helpful.

Is there a way to suppress the progress bar dialog box when scanning?

Thanks,

Andy

Re: VintaSoftTwain disabling visual styles

Posted: Tue Oct 28, 2014 8:00 pm
by marshallandy83
OK, I found the ShowIndicators property but setting this to false does not solve the problem.

Re: VintaSoftTwain disabling visual styles

Posted: Tue Oct 28, 2014 8:08 pm
by Alex
I think DevComponents allows to evaluate their DotNetBar components. Could you send us a project with evaluation version of DotNetBar components?

Best regards, Alexander