My project use a MDI application. I want to minimize my main form into the System Tray. I've search for the coding but I found coding for Form to System Tray. But it's not work for MDIForm. What can be done to achieve the same result?
I just added the Subclasser.bas and Notifyicon.ctl modules to the MDI Project, added an instance of the NotifyIcon control to the MDIForm, assigned it an Icon, added code:
Code:
Private Sub MDIForm_Resize()
If WindowState = vbMinimized Then NotifyIcon1.MinimizeToTray Me
End Sub
Private Sub NotifyIcon1_Click()
NotifyIcon1.Restore True
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.