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. how can i minimize my program i the sytem try ?

how can i minimize my program i the sytem try ?

Scheduled Pinned Locked Moved C#
4 Posts 4 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.
  • A Offline
    A Offline
    ariyanna
    wrote on last edited by
    #1

    hi everyone, i want to know how can i minimize my program in the system try , in fact i want to know how can i create my program that when a user clicks on the minimize button program minimize in the system try (beside the system digital clock)? I'm coding with C#.Net....tanx a lot :rose:

    D G J 3 Replies Last reply
    0
    • A ariyanna

      hi everyone, i want to know how can i minimize my program in the system try , in fact i want to know how can i create my program that when a user clicks on the minimize button program minimize in the system try (beside the system digital clock)? I'm coding with C#.Net....tanx a lot :rose:

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Add a NotifyIcon to your form. Subscribe to the form's Resize event, check it's state and if minimized, set Visible to false and the NotifyIcon's visibility to true. You'll need to add a context menu as well so your tray icon has funtionality but that's the basics.

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      1 Reply Last reply
      0
      • A ariyanna

        hi everyone, i want to know how can i minimize my program in the system try , in fact i want to know how can i create my program that when a user clicks on the minimize button program minimize in the system try (beside the system digital clock)? I'm coding with C#.Net....tanx a lot :rose:

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        You can use NotifyIcon to show icon in the system tray. To hide your form, call Hide() method.

        Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

        1 Reply Last reply
        0
        • A ariyanna

          hi everyone, i want to know how can i minimize my program in the system try , in fact i want to know how can i create my program that when a user clicks on the minimize button program minimize in the system try (beside the system digital clock)? I'm coding with C#.Net....tanx a lot :rose:

          J Offline
          J Offline
          jaypatel512
          wrote on last edited by
          #4

          And one more thing.. You need to set show in taskbar set to false;

          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