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. How to Make a MDI form itself XP theme aware

How to Make a MDI form itself XP theme aware

Scheduled Pinned Locked Moved C#
helptutorialquestion
5 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.
  • T Offline
    T Offline
    TaoLi
    wrote on last edited by
    #1

    I'm coding a MDI form application. What I really want the form (not the controls it contain) to look like is similar to Office 2003, which reflects the theme the system is using. Could someone give me some help? Thanks!

    H 2 Replies Last reply
    0
    • T TaoLi

      I'm coding a MDI form application. What I really want the form (not the controls it contain) to look like is similar to Office 2003, which reflects the theme the system is using. Could someone give me some help? Thanks!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Unless you draw the UI elements with the theme data yourself, it's either all or nothing for applying visual styles.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      • T TaoLi

        I'm coding a MDI form application. What I really want the form (not the controls it contain) to look like is similar to Office 2003, which reflects the theme the system is using. Could someone give me some help? Thanks!

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        Also, if you want the Office 2003 look, there are dozens of third-party controls out there (maybe even some free ones, though you get what you pay for often times). Just google. There's a couple here on CodeProject as well, although - IMO - I don't think they even come close to Office 2003.

        Microsoft MVP, Visual C# My Articles

        T 1 Reply Last reply
        0
        • H Heath Stewart

          Also, if you want the Office 2003 look, there are dozens of third-party controls out there (maybe even some free ones, though you get what you pay for often times). Just google. There's a couple here on CodeProject as well, although - IMO - I don't think they even come close to Office 2003.

          Microsoft MVP, Visual C# My Articles

          T Offline
          T Offline
          TaoLi
          wrote on last edited by
          #4

          I can call EnableVisualStyle to make contained controls to have visula styles. But for the form itself, e.g. border colors, how do I make that happen?

          J 1 Reply Last reply
          0
          • T TaoLi

            I can call EnableVisualStyle to make contained controls to have visula styles. But for the form itself, e.g. border colors, how do I make that happen?

            J Offline
            J Offline
            Jon G
            wrote on last edited by
            #5

            I have never done this, but from reading I think it is possible. You can create a manifest file using XML to tell your application to use the operating system's style. The file is placed in the same directory as your project, and is called myProject.exe.manifest I don't have a link for it at the moment, but I'm sure information will be readily available using google :) Hope it helps

            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