none
Visual Studio outlook addin - EnableVisualStyles on main process RRS feed

  • Question

  • I am opening a windows forms application in a outlook addin project in Visual Studio 2010. I notice that the styles are not enabled - and it is essential that I enable them. I need to add the following line of code to outlooks program:

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

    Can anyone help me accomplish this? Is there any way to set these properties for a thread instead of the main application process? Any work arounds?


    Watson

    • Moved by Max Meng Friday, October 12, 2012 9:38 AM Off-topic (From:Outlook IT Pro Discussions)
    Sunday, October 7, 2012 4:18 PM

Answers

All replies