Menu

#10 Enable XP Theme support

open
5
2004-08-22
2004-05-15
Anonymous
No

If you call Application.EnableVisualstyles() in your
Main() method then you'll get Windows XP theme support
if you also set the controls to use FlatStyle =
Standard. It looks prettier.

Discussion

  • Craig Andera

    Craig Andera - 2004-08-19

    Logged In: YES
    user_id=879696

    Implemented as of version 0.93.

     
  • Craig Andera

    Craig Andera - 2004-08-19
    • status: open --> closed
     
  • Craig Andera

    Craig Andera - 2004-08-22
    • status: closed --> open
     
  • Craig Andera

    Craig Andera - 2004-08-22

    Logged In: YES
    user_id=879696

    Unfortunately, calling EnableVisualStyles was causing the
    exception handling in my code to cause crashes. Will re-add
    in the future after further investigation.

     
  • Nobody/Anonymous

    Logged In: NO

    I've tested adding EnableVisualStyles(); And everything gone
    well : I even saw your Exception handling window (when
    trying to press F1). What I've done is adding the two
    following lines at the very start of your Main method (even
    before the ThreadException event wiring) :

    [STAThread]
    public static void Main(string[] args)
    {
    Application.EnableVisualStyles();
    Application.DoEvents();
    Application.ThreadException += new
    System.Threading.ThreadExceptionEventHandler
    (Application_ThreadException);

    App.args = args;
    

    ...
    }

    Olivier DALET (odalet@wanadoo.fr)

     
  • Craig Andera

    Craig Andera - 2004-10-09

    Logged In: YES
    user_id=879696

    Thanks - I've seen that same fix elsewhere, too. I'll try to
    add it in in a release soon.

     

Log in to post a comment.