November 16th, 2008, 02:31 PM
I have lots of form in my main form and those forms also contain lots of control...like tree, panel..
so when anyone select some font style and color in User preference form it should be affect on all the open form ..so how can i do that so it can affect all the text in all open form controls..
November 16th, 2008, 04:12 PM
Re: User Preference
The basic pattern ("Observer") is that you implement a set of events in your preferences class, and have each of the UI elements listen for changes by registering for this event.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code
outside of [code] ... [/code]
tags. See here
* How NOT
to post a question here
* Of course you read this
carefully before you posted
* Need homework help? Read this first
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!