Windows Develop Bookmark and Share   
 index > Windows Forms General > How to make controls appearance independed from windows theme
 

How to make controls appearance independed from windows theme

Hello. I've developed an applicaition that uses lots of controls that change their appearance depend on Windows theme.

For example this is a ToolStrip. With Windows XP theme it has required appearance, but I switch Windows theme it looks terrible with another application components that do not change their appearance (panels for exaple).

Do you know how to make my applcation independed with chosen Windows theme? Mostly I mean ToolStrip control. Problem with tab control is fixed using custom-drawn TabControl.

Thanks in advance

Mykhaylo Blishch  Tuesday, October 03, 2006 3:45 PM

Hi,

you can change ToolStrip's looks by changing its Renderer (through RenderMode property). You can choose between two built-in renderers (System, Professional) or you can write your own by deriving from one of them and override wanted properties. You can apply a new renderer to all strips in your application through ToolStripManager.Renderer property (or use ToolStripManager.RenderMode for changing to one of the two existing renderers).

Andrej

Andrej Tozon  Tuesday, October 03, 2006 6:33 PM

Hi,

you can change ToolStrip's looks by changing its Renderer (through RenderMode property). You can choose between two built-in renderers (System, Professional) or you can write your own by deriving from one of them and override wanted properties. You can apply a new renderer to all strips in your application through ToolStripManager.Renderer property (or use ToolStripManager.RenderMode for changing to one of the two existing renderers).

Andrej

Andrej Tozon  Tuesday, October 03, 2006 6:33 PM

Many thanks.

That's exactly what I need.

Mykhaylo Blishch  Wednesday, October 04, 2006 4:43 PM

You can use google to search for other answers

Custom Search

More Threads

• including windows.h in the Form1.h file
• How do you make two forms appear to be one form?
• Custom FlowLayoutPanel Themes/Styles
• Image on top of all windows
• What is the difference between BegingInvoke(), Invoke() and EndInvoke() methods?
• add& remove
• Multiple Forms
• Windows Forms Progress/Status Bar
• Disappearing Borders
• Soap Formatter Problem saving this object