I have a clock application. I have set the Window's TopMost property. But, randomly, some other window or visual studio comes above clock.
Is there any other way to make my window (clock app) to display always on top of all other applications.
I have a clock application. I have set the Window's TopMost property. But, randomly, some other window or visual studio comes above clock.
Is there any other way to make my window (clock app) to display always on top of all other applications.
Are you sure it's a random window? If another window is also a topmost window, it is possible for it to come above your window.
So far, known best way is to restarting the process at a constant interval of time.
Alternatively, you can toggle the TopMost property in a constant interval of time. [Not tested this though].