VintaSoftTwain disabling visual styles

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
marshallandy83
Posts: 3
Joined: Thu Oct 16, 2014 5:55 pm

VintaSoftTwain disabling visual styles

Post 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
Alex
Site Admin
Posts: 2364
Joined: Thu Jul 10, 2008 2:21 pm

Re: VintaSoftTwain disabling visual styles

Post 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
marshallandy83
Posts: 3
Joined: Thu Oct 16, 2014 5:55 pm

Re: VintaSoftTwain disabling visual styles

Post 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
marshallandy83
Posts: 3
Joined: Thu Oct 16, 2014 5:55 pm

Re: VintaSoftTwain disabling visual styles

Post by marshallandy83 »

OK, I found the ShowIndicators property but setting this to false does not solve the problem.
Alex
Site Admin
Posts: 2364
Joined: Thu Jul 10, 2008 2:21 pm

Re: VintaSoftTwain disabling visual styles

Post 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
Post Reply