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.

Source: Internet
Author: User

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 )).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.