I have a VSTO 2.0 Microsoft Word Template using VS.NET 2005 RC1.
Everytime that my background thread that's parsing part of the document looks at the style information on a range, the document grabs focus from where ever has focus (my action pane, the Styles and Formatting Task Pane and so on). This is also causing a severe flicker in my Styles and Formatting Task Pane.
Does anyone know how to run a background thread in VSTO so that it doesn't grab focus and cause that type of flicker when it talks to the Microsoft Word object model

Background Thread Causing Flicker and Grabbing Focus
amr_sawy
kubad
---k31---
Regards
DirectAim
Unfortunately accessing some properties in Word/Excel OM does have the effect of stealing focus, creating temporary windows etc. So, the problem is not the background thread but accessing the document styles programmatically.