As a part of my main project, I need to display a simple on/off switch on multiple displays while the status of switches must be synced and I can click either one to switch.
Referred to this questions, it displays windows on "slave" screens by taking a snapshot of the "master" window. It is not an option for me as I won't able to operate on "slave" windows.
Referred to this question suggests to create multiple instances of forms across screens, it again will not able to sync the status of the button.
It seems the second example would be more applicable to my requirement, as the only thing I need to do is to synchronize the status of the on/off switch. If I am correct, I, however, don't know how to pass the parameter between instances or how to raise events and add the event listener?
A final note is that I need it working with at least 3 displays, so would the event need to be something like multi-cast?
Update: All forms are within the same application. More detail: I have one MainForm
on one of the displays that shows most information and need other forms on all displays to operate as a switch. The status of switch will be send back to the MainForm
and synchronised on all SwitchForm
.
Thanks!