Windows XP look and feel in Office Addin Project

A

Anand

I have an Office Addin project in which click of commandbar
button i creates object of a form and show. Since i need XP look and
feel i created a manifest file, added in my application. But XP look
and feel seems to be not coming. Controls flatstyle is 'System'. But
when i did the same method for a Windows application project, this
works. Instead,I tried after InitializeComponent() in all forms,

Application.EnableVisualStyles()
Application.DoEvents()

it worked.(My OS is Windows XP) But when i click the commandbar button
again, it showed application has encountered a serious problem and
restarted.

http://msdn.microsoft.com/library/d...sXPVisualStylesWithControlsOnWindowsForms.asp
was my reference to create manifest file.

Any help will be appreciated
 

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