When activating keepass from the tray icon, the window is not always automatically pushed to the front.
eg:
When the keepass window is in the foreground, click another window, then double click the tray icon twice (once to minimize to tray, once to re-activate). The keepass window will activate, but it won't be in the foreground.
Maybe add a call to SetForegroundWindow(Handle.ToInt32()); so it always gets popped to the front?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When activating keepass from the tray icon, the window is not always automatically pushed to the front.
eg:
When the keepass window is in the foreground, click another window, then double click the tray icon twice (once to minimize to tray, once to re-activate). The keepass window will activate, but it won't be in the foreground.
Maybe add a call to SetForegroundWindow(Handle.ToInt32()); so it always gets popped to the front?
Good idea, I've implemented it (using a .NET method though, not a native system call).
The latest development snapshot for testing is available here:
http://keepass.info/filepool/KeePass_090828c.zip
Thanks and best regards
Dominik
Works great! Thanks.