1. galaxyAbstractor

    galaxyAbstractor Community Advocate Community Support

    Messages:
    5,508
    Likes Received:
    35
    Trophy Points:
    48
    ldlHFS.jpg
    How can I get the form to have same theme as windows? Now it's using the Classic windows 95 theme instead...
     
  2. zegnhabi

    zegnhabi Member

    Messages:
    44
    Likes Received:
    2
    Trophy Points:
    8
    your issue is related to the visual style of your forms, which is resolved by enabling the visual styles in your application. just add this line in your main method.

    static void Main ()
    {
    Application.EnableVisualStyles (); //<---- this line
    Application.SetCompatibleTextRenderingDefault (false);
    Application.Run (new MainForm ());
    }
     
    • Like Like x 1
  3. galaxyAbstractor

    galaxyAbstractor Community Advocate Community Support

    Messages:
    5,508
    Likes Received:
    35
    Trophy Points:
    48
    Thank you very much :D. +rep for that
     
  4. zegnhabi

    zegnhabi Member

    Messages:
    44
    Likes Received:
    2
    Trophy Points:
    8
    Your welcome... ;)
     

Share This Page