简体   繁体   中英

Get resize mode of WinForm in c#

Let's say I have the simplest form in c# .NET, and want to resize it. During the form is resized, how can I get when it is being maximized, and when minimized?? Is there any resize mode property in any event?

There's a WindowState property on the Form object itself. Its value is one of the FormWindowState enumerated values: Normal , Minimized , or Maximized . If you check that property in your resize event, will that tell you what you need to know?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM