locked
Problem with windows form loaded from a Excel Shared addin toolbar button click RRS feed

  • Question

  • I have developed an excel shared addin using vs 2008 Extensiblity SharedAddin template. The addin adds customized toolbar having buttons to excel application.

    In the excel application, I should load a windows form in the button click event of the addin toolbar. The windows form has controls like web browser, scroll bars (vertical / horizontal), combobox, radio button, checkbox, button, progressbar etc.

    The problem I'm facing is, controls in the windows form are having old style at runtime(like vs 2003 controls).

    Wednesday, March 2, 2011 5:35 AM

Answers

  • This might be better answered in a Winforms specific forum as it isn't really about VS extensibility.  That said have you tried calling EnableVisualStyles ?

    Ryan

    • Marked as answer by Navyatha Thursday, March 3, 2011 4:26 AM
    Wednesday, March 2, 2011 4:22 PM

All replies

  • This might be better answered in a Winforms specific forum as it isn't really about VS extensibility.  That said have you tried calling EnableVisualStyles ?

    Ryan

    • Marked as answer by Navyatha Thursday, March 3, 2011 4:26 AM
    Wednesday, March 2, 2011 4:22 PM
  • Thank you Ryan....it worked.
    Thursday, March 3, 2011 4:26 AM