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..
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!) 2008, 2009 In theory, there is no difference between theory and paractice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Bookmarks