using enable application framework from module

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • woony
    New Member
    • Dec 2007
    • 11

    using enable application framework from module

    Hello,

    I have to update an excisting program. This is programmed in vs2003. framework 1

    Now I have to do some changes to this and using vs2005 now. Also framework 2.
    Being this an update I'd like to have it the xp look and feel. I found this works simple by checking "enable application framework" in the program properties. However when checking this I have to choose a 'form' to startup from. This happens now from a module. Is there any way I can get this to run from the module having xp look and feel. Or a work around?

    Thx in advance
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Originally posted by woony
    Hello,

    I have to update an excisting program. This is programmed in vs2003. framework 1

    Now I have to do some changes to this and using vs2005 now. Also framework 2.
    Being this an update I'd like to have it the xp look and feel. I found this works simple by checking "enable application framework" in the program properties. However when checking this I have to choose a 'form' to startup from. This happens now from a module. Is there any way I can get this to run from the module having xp look and feel. Or a work around?

    Thx in advance
    In your main() function (or wherever the Application.Run function is called)
    Add in this line:
    Code:
    Application.EnableVisualStyles();
    This tells your application to use the theme currently in use (such as XPs look and feel)

    Comment

    • woony
      New Member
      • Dec 2007
      • 11

      #3
      Thanks alot!
      This worked perfectly.

      Comment

      Working...