Windows Develop Bookmark and Share   
 index > Windows Forms General > Theme / Skin
 

Theme / Skin

I want to give user some option to customize the UI. For example, they can set a larger font size (say, +2) with a different font. My app has lots of controls, some inherit the font settings from the parent, some has customized setting.

How can I apply the change easily across many controls? The controls with inherited font is easy, because modifying the font setting in the parent will propagate the setting down. The problem is the control with custom font settings.
eqs  Friday, August 01, 2008 3:19 PM

eqs wrote:
I want to give user some option to customize the UI. For example, they can set a larger font size (say, +2) with a different font. My app has lots of controls, some inherit the font settings from the parent, some has customized setting.

How can I apply the change easily across many controls? The controls with inherited font is easy, because modifying the font setting in the parent will propagate the setting down. The problem is the control with custom font settings.

I can't see any other way but going trough all the controls using a foreach statement and setting the Font's sizeto another value.

Lucian Baciu  Monday, August 04, 2008 8:42 AM

eqs wrote:
I want to give user some option to customize the UI. For example, they can set a larger font size (say, +2) with a different font. My app has lots of controls, some inherit the font settings from the parent, some has customized setting.

How can I apply the change easily across many controls? The controls with inherited font is easy, because modifying the font setting in the parent will propagate the setting down. The problem is the control with custom font settings.

I can't see any other way but going trough all the controls using a foreach statement and setting the Font's sizeto another value.

Lucian Baciu  Monday, August 04, 2008 8:42 AM

You can use google to search for other answers

Custom Search

More Threads

• How to convert DateTime in 0000hrs format
• Help with controls appearance on runtime...
• How to build a control to display thumbnails
• Slow control painting...
• Run VB.NETApplication on MAC
• Change HotTrack Colour?
• Turn Redraw of a control/form OFF?
• IE7 control instead of browser control
• How to make the end of TextBox.Text in view?
• ToolStrips added to ToolStripContainer panels at runtime