Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. .net 2005 - win form - manifest - win xp style

.net 2005 - win form - manifest - win xp style

Scheduled Pinned Locked Moved C#
questioncsharpwpfwinforms
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arkiboys
    wrote on last edited by
    #1

    Hi, I am using .net 2.0 windows forms under windows xp pro. Created a file called: MA.exe.manifest The solution is MA.sln This manifest file is in the same path as MA.sln on the C drive where I do the development. For a particular button property in the form I have set the flatstyle property to system rather than standard. How can I enable the Windows XP styles? I.e. a button control to appear as the windows xp style rather than the present standard. This is the content of the manifest file: Your application description here.

    L 1 Reply Last reply
    0
    • A arkiboys

      Hi, I am using .net 2.0 windows forms under windows xp pro. Created a file called: MA.exe.manifest The solution is MA.sln This manifest file is in the same path as MA.sln on the C drive where I do the development. For a particular button property in the form I have set the flatstyle property to system rather than standard. How can I enable the Windows XP styles? I.e. a button control to appear as the windows xp style rather than the present standard. This is the content of the manifest file: Your application description here.

      L Offline
      L Offline
      Libor Tinka
      wrote on last edited by
      #2

      I think this should be done programatically. VS 2005 adds these lines in Main() automatically when creating WinForms application: Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false);

      A 1 Reply Last reply
      0
      • L Libor Tinka

        I think this should be done programatically. VS 2005 adds these lines in Main() automatically when creating WinForms application: Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false);

        A Offline
        A Offline
        arkiboys
        wrote on last edited by
        #3

        I do have these lines already but no xp style yet. Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups