Results 1 to 3 of 3

Thread: Click on minimise then send to system tray

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Resolved 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.

  2. #2
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    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:
    1. 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

  3. #3

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Click on minimise then send to system tray

    Cheers!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width