Is it possible to make a control global (or public) so that every window can access to that control which is located in a window. In other words, how can I access to that control within windows?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure what your intention is, but my educated guess is that you want to update the visual state (UI) of a control instance (let’s call it C1) within a window (let’s call it W1) from other controls in other windows.
Assuming that’s the case, the .NET framework already has everything you need: Events and Delegates.
When some data changes in a window/control that should trigger a change in C1, that window/control should fire an event that C1 listens for and handles with a delegate. The UI update would happen in said delegate.