Hi there,
I'm writing an application with forms. my main window can be hidden (minimize to a tray icon) like...Microsof t Outlook for example.
this application can run only one instance (again like outlook) - meaning that on initialization, I check if there is another process running and if so I exit from the new one.
in case the main window is hidden and the user tries to open the application again (from the start menu or desktop icon...), I want to re-display the main window and bring it to foreground as if it was restored from the tray icon (who's keep saying outlook???)
my problem is that I don't know how to do so. I can send a window message in case the main window is minimized by using windows API but how can this be done if the window is hidden????
Thanx in advance,
Uv
I'm writing an application with forms. my main window can be hidden (minimize to a tray icon) like...Microsof t Outlook for example.
this application can run only one instance (again like outlook) - meaning that on initialization, I check if there is another process running and if so I exit from the new one.
in case the main window is hidden and the user tries to open the application again (from the start menu or desktop icon...), I want to re-display the main window and bring it to foreground as if it was restored from the tray icon (who's keep saying outlook???)
my problem is that I don't know how to do so. I can send a window message in case the main window is minimized by using windows API but how can this be done if the window is hidden????
Thanx in advance,
Uv
Comment