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.
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.