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. XP style controls

XP style controls

Scheduled Pinned Locked Moved C#
csharpquestion
7 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Can anyone tell me how i get the controls on my C# form to display in an XP style, when the form is running on XP? Any ideas welcome! kenbloke

    M J 2 Replies Last reply
    0
    • L Lost User

      Can anyone tell me how i get the controls on my C# form to display in an XP style, when the form is running on XP? Any ideas welcome! kenbloke

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      When you run your application on XP it display in XP style,even it is C#,VC or VB programs.Maybe you change your Appearence to classic style in control panel Mazy You can find a solution (even a foolish one) for all problems (even big ones)

      L 1 Reply Last reply
      0
      • M Mazdak

        When you run your application on XP it display in XP style,even it is C#,VC or VB programs.Maybe you change your Appearence to classic style in control panel Mazy You can find a solution (even a foolish one) for all problems (even big ones)

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        To clarify. XP style in terms of displaying the controls in the updated XP style as defined by XP's Common Control library and XP's current theme setting. I'm new to C# and does not appear to be obvious how to achieve this. Or have i missed something? Kenbloke

        M 1 Reply Last reply
        0
        • L Lost User

          To clarify. XP style in terms of displaying the controls in the updated XP style as defined by XP's Common Control library and XP's current theme setting. I'm new to C# and does not appear to be obvious how to achieve this. Or have i missed something? Kenbloke

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          I don't get what you really want(sorry for my poor english:( ),but according to my knowledge it is something refer to your windows not your programming language Mazy You can find a solution (even a foolish one) for all problems (even big ones)

          1 Reply Last reply
          0
          • L Lost User

            Can anyone tell me how i get the controls on my C# form to display in an XP style, when the form is running on XP? Any ideas welcome! kenbloke

            J Offline
            J Offline
            James T Johnson
            wrote on last edited by
            #5

            In order to enable the XP Style controls you need to include a manifest either as a resource or as a separate file. The manifest is nothing more than an xml document :) your application description (manifest taken from Colin's VMTU since I can't find mine here) If the manifest is included as a separate file (the easiest way to do it), it should be named myapp.exe.manifest I can't remember the steps off hand for putting the manifest in the resource, i think resgenx was the command that was used to generate the resource, then you include the resource with the compiler. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

            J 1 Reply Last reply
            0
            • J James T Johnson

              In order to enable the XP Style controls you need to include a manifest either as a resource or as a separate file. The manifest is nothing more than an xml document :) your application description (manifest taken from Colin's VMTU since I can't find mine here) If the manifest is included as a separate file (the easiest way to do it), it should be named myapp.exe.manifest I can't remember the steps off hand for putting the manifest in the resource, i think resgenx was the command that was used to generate the resource, then you include the resource with the compiler. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

              J Offline
              J Offline
              James T Johnson
              wrote on last edited by
              #6

              And as Mazdak said, set the Appearance property to standard :) James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

              L 1 Reply Last reply
              0
              • J James T Johnson

                And as Mazdak said, set the Appearance property to standard :) James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Thanks for that info James and Mazdak!!! :-D pointed me in the right direction. Anyway for anyone who is still having problems displaying XP style controls. i found the following site on msdn useful. http://msdn.microsoft.com/library/?url=/library/en-us/dv\_vbvcstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp?frame=true Kenbloke

                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