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.
Bajoo - 29 Oct 2005 07:06 GMT
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