Hi there,
I have a MDI parent form which I want to send to system tray when i click on the minimise button. I have found this Thread, but it does not send to system tray when minimised.
Is there some sort of frmMain.(onminimised) event?
Cheers
Printable View
Hi there,
I have a MDI parent form which I want to send to system tray when i click on the minimise button. I have found this Thread, but it does not send to system tray when minimised.
Is there some sort of frmMain.(onminimised) event?
Cheers
Dino,
Your link is broken.
Of the top of my head, you need to add a notifyicon component to your form and give it a pretty icon.
Then in the form's resize event, check the windowstate propertyVB Code:
If Me.WindowState = FormWindowState.Minimized Then Me.Hide()
And that should show your app in the system tray.
Would double check the code, but my Visual Studio seems rather broke at the moment :rolleyes:
Cheers!