Outlook 'look and feel'

C

Craig Buchanan

My add-in's forms and control have a distinctly windows 98 (or so) feel
about them. Is there something that I need to do in my VS 2005 project to
use the Windows XP style?

Thanks,

Craig Buchanan
 
K

Ken Slovak - [MVP - Outlook]

With Framework 2.0 or higher (too buggy in Framework 1.0 and 1.1) put this
as your first code line in the OnConnection() event handler or Startup():

System.Windows.Forms.Application.EnableVisualStyles();

That will enable styles for your addin, but not for custom Outlook forms.
 
C

Craig Buchanan

Thanks Ken. Worked as perfectly.

Ken Slovak - said:
With Framework 2.0 or higher (too buggy in Framework 1.0 and 1.1) put this
as your first code line in the OnConnection() event handler or Startup():

System.Windows.Forms.Application.EnableVisualStyles();

That will enable styles for your addin, but not for custom Outlook forms.
 

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