'TopMost' window will NOT 'BringToFront' ?
I have a small application that runs for the most part as a task tray icon – although can be expanded into a window.
This application has another form which is used as a popup msg window which connects to a database popups up alert msgs as and when any are set.
This works fine, and has gone through test and is now out live.
I am now having people report that the popup window does not actually popup – on investigation I’ve discovered that it is sat behind all the windows on the screen, including in some cases the main application window of the same program.
This is despite having called the.BringToFront command where the popup window is shown. It is even set to TopMost = True – so why on earth is it not on top of its own application windows and behind all windows?!?!?
I can’t for the life of me replicate this problem on my dev machine or within test – so what circumstance could possible prevent a window from coming to the top?!?!
As it stands, this problem destroys the whole purpose of this program!
This is using VS.NET 2002.
Has anyone else had this kind of problem or can suggest ways around it – e.g. how to I force a window to come to the front of the screen?
Many thanks for any help.