We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Minimize to tray button

Thread ID:





11344 Mar 3,2004 09:27 AM UTC Jan 4,2006 03:51 PM UTC WinForms 2
Tags: FAQ
Administrator [Syncfusion]
Asked On March 3, 2004 09:27 AM UTC

Hi, Is there a way to add a "minimize to tray" button to a windows form's title bar (.net)? Thanks in advance

Administrator [Syncfusion]
Replied On December 26, 2005 07:31 AM UTC

Hi If ur actual need is to minimize application to sys tray when user clicks on minimize button,I have one method.Just check the WindowState property in a TimerElapsed or thread and if it is FormWindowState.Minimized then minimize to tray. Best of luck >Hi, > >Is there a way to add a "minimize to tray" button to a windows form''s title bar (.net)? > >Thanks in advance >

Replied On January 4, 2006 03:51 PM UTC

Yes you should add NotifyIcon control to your application. Then in the Form_Resize event check to see if the window state is being changed to minimized and then show the NotifyIcon control in the sysTray; Then allow a right click of the control to show a context menu strip and/or allow user to double click the NotifyIcon and it would open the application back to the previous state which you should have created a UserSetting to store the State of the window in!!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon