|
-
Mar 31st, 2005, 06:24 AM
#1
Thread Starter
Frenzied Member
Click on minimise then send to system tray
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
Last edited by dinosaur_uk; Mar 31st, 2005 at 07:20 AM.
-
Mar 31st, 2005, 06:38 AM
#2
Hyperactive Member
Re: Click on minimise then send to system tray
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 property
VB 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
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
Dr. Seuss 
-
Mar 31st, 2005, 07:19 AM
#3
Thread Starter
Frenzied Member
Re: Click on minimise then send to system tray
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|