Can I trap the Minimize action by the User in a Form
Hi,
I am working on a project that will be runing on a Win-NT server for all the time ie. 24 Hrs.
If the user minimizes the form the application has to be seen in the system tray some thing similar to Task Manager of Win-Nt.
Thanks in advance,
Britto
Re: Can I trap the Minimize action by the User in a Form
You can use code similar to :
private Sub Form_Resize()
If me.WindowState = vbMinimized then
MsgBox "Window is minimized!"
End If
End Sub
- to trap the minimized state of the window. You can then use our own AndyK's code from
http://codeguru.developer.com/bbs/wt...age=0&Limit=25
to place an icon in the system tray.
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb