EnableVisualStyles() method and Microsoft Word

M

Michael

I'm building a VSTO solution with .NET 1.1 and Microsoft Word. When I try to
use Application.EnableVisualStyles() my WinForms appearing in Word will have
XP styles, but it will also crash Word when I close a WinForm. Anybody knows
a workaround to this problem?

And out of curiousity, will we still need to call EnableVisualStyles() in
..NET 2.0? That seems silly to have to call that method. I would think .NET
would pick up whatever the appropriate style is for the OS it is running on.

I used those two lines of code:
Application.EnableVisualStyles();
Application.DoEvents();

Thanks.
 
B

Bajoo

Dear Michael,
I was using ToolStrip Controls in VS2005 it
has a property called RenderMode which can be set to Professional ,
System or custom but i didn't saw any thing like this In VSTO in VS
2005.

Regards,
Naveed Ahmad Bajwa
Kalsoft Pvt Ltd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top