Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2005

Tip: Looking for answers? Try searching our database.

EnableVisualStyles() method and Microsoft Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael - 29 Oct 2005 00:00 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.