Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. minimize to tray?

minimize to tray?

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    visiontec
    wrote on last edited by
    #1

    Hi there i have an mdi app that has a notifyicon. i want my app to minimize to the tray when it is minimized but when i minimize the app it minimizes to the bottom of my desktop! i have set the property ShowInTaskbar = false of the main form Can anyone help me?? VisionTec

    O 1 Reply Last reply
    0
    • V visiontec

      Hi there i have an mdi app that has a notifyicon. i want my app to minimize to the tray when it is minimized but when i minimize the app it minimizes to the bottom of my desktop! i have set the property ShowInTaskbar = false of the main form Can anyone help me?? VisionTec

      O Offline
      O Offline
      OmegaSupreme
      wrote on last edited by
      #2

      Use Hide(); and Show(); methods of Form.


      The smaller the mind the greater the conceit. Aesop

      V 1 Reply Last reply
      0
      • O OmegaSupreme

        Use Hide(); and Show(); methods of Form.


        The smaller the mind the greater the conceit. Aesop

        V Offline
        V Offline
        visiontec
        wrote on last edited by
        #3

        The Show() Hide() methods work fine if i use buttons or menus. But i want to use the minimize box that the form has. Can anyone plz help? VisionTec

        O 1 Reply Last reply
        0
        • V visiontec

          The Show() Hide() methods work fine if i use buttons or menus. But i want to use the minimize box that the form has. Can anyone plz help? VisionTec

          O Offline
          O Offline
          OmegaSupreme
          wrote on last edited by
          #4

          protected override void OnDeactivate(EventArgs e) {
          Hide();
          }

          try this, hope it helps.


          The smaller the mind the greater the conceit. Aesop

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups