Windows XP Colors
-
Hi again i am working on a C# windows program and i am trying to make some control just like what we have in OS or office 2003. but i can't find the color code that change with changing system default Theme. we have 3 default theme on XP, blue green and Gray, how can i paint my control or their background with for example the special blue gradient we have on background of Windows explorer search pane? thanks a lot.:)
-
Hi again i am working on a C# windows program and i am trying to make some control just like what we have in OS or office 2003. but i can't find the color code that change with changing system default Theme. we have 3 default theme on XP, blue green and Gray, how can i paint my control or their background with for example the special blue gradient we have on background of Windows explorer search pane? thanks a lot.:)
Good question I wondered about that too. My suggestion at this point it too download some of the samples here and see how others did it. It should be in there. My best guess is that the various Explorer bars and outlook 2003 bar implementations should contain just what you need.
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
-
Hi again i am working on a C# windows program and i am trying to make some control just like what we have in OS or office 2003. but i can't find the color code that change with changing system default Theme. we have 3 default theme on XP, blue green and Gray, how can i paint my control or their background with for example the special blue gradient we have on background of Windows explorer search pane? thanks a lot.:)
It depends on what you are trying to change. If you want to change the colors of the toolstrips, menustrips, and statusstrips, you will need to create your own renderer that derives from
ToolStripProfessionalRenderer
and your own color tables that derive fromProfessionalColorTable
. You can then set theToolStripManager.Renderer
property to your renderer. You will need to change theRenderMode
property on the toolstrip, menustrip, and statusstrip toManagerRenderMode
as well.----------------------------- In just two days, tomorrow will be yesterday. http://geekswithblogs.net/sdorman
-
Good question I wondered about that too. My suggestion at this point it too download some of the samples here and see how others did it. It should be in there. My best guess is that the various Explorer bars and outlook 2003 bar implementations should contain just what you need.
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
Willem, See my other response: http://www.codeproject.com/script/comments/forums.asp?forumid=1649&mpp=50&select=2137613&df=100#xx2137613xx[^]
----------------------------- In just two days, tomorrow will be yesterday. http://geekswithblogs.net/sdorman