R
Robert Jacobson
Hi,
I'm creating a COM add-in for Microsoft Word XP with VB.Net and Visual
Studio 2003. It displays several forms, which I'd like to show using the
Windows XP theme. (I'm familiar with the methods to do this with a managed
EXE -- using the manifest or calling Application.EnableVisualStyles.)
How do I go about doing this with a COM add-in? I've tried calling
Application.EnableVisualStyles (followed by Application.DoEvents) before the
forms display, and get inconsistent results -- sometimes it will display in
the traditional style, and sometimes in the XP style, depending on when I
make the call. Worse, it makes Word very unstable -- it will often crash
randomly when displaying one of my forms.
Is it possible to get the XP style in a COM add-in by using a manifest? If
so, what settings should I use? Are there any other techniques that I
should try?
Thanks,
Robert Jacobson
I'm creating a COM add-in for Microsoft Word XP with VB.Net and Visual
Studio 2003. It displays several forms, which I'd like to show using the
Windows XP theme. (I'm familiar with the methods to do this with a managed
EXE -- using the manifest or calling Application.EnableVisualStyles.)
How do I go about doing this with a COM add-in? I've tried calling
Application.EnableVisualStyles (followed by Application.DoEvents) before the
forms display, and get inconsistent results -- sometimes it will display in
the traditional style, and sometimes in the XP style, depending on when I
make the call. Worse, it makes Word very unstable -- it will often crash
randomly when displaying one of my forms.
Is it possible to get the XP style in a COM add-in by using a manifest? If
so, what settings should I use? Are there any other techniques that I
should try?
Thanks,
Robert Jacobson