I want to click the minimize icon in the upper-right corner of the form to minimize the entire form to the system tray. I do not know where to control the event minimization.
Thank you for using Microsoft products.
You can use the closing event of the system. Windows. Forms. Form class to add a window close event handler. To cancel the window close operation, you can set the cancel attribute of the variable canceleventargs of the canceleventargs type passed to the handler function after the closing event is triggered.
The maximum and minimum Windows events are all triggered by the resize event of the system. Windows. Forms. Form class. You only need to customize the resize processing function and add it to the resize event to capture events that maximize, minimize, and change the window size.
-Microsoft Global Technical Center VC Technical Support
This post is only for csdn users as reference information. Its content does not have any legal protection. You must take into account and bear the risks arising from using this information. For more information, see Terms of Use (http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp ).
To create a better discussion environment for you, please join our user satisfaction survey (http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp? Key = (S, 49854782 )).