how can i minimize my program i the sytem try ?
-
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:
-
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:
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) -
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:
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
-
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:
And one more thing.. You need to set show in taskbar set to false;