You can use the Resize event and check the Forms.WindowState Property in the event.
private void Form1_Resize ( object sender , EventArgs e )
{
if ( WindowState == FormWindowState.Minimized )
{
// Do some stuff
}
}
More Related Contents:
- How to remove all event handlers from an event
- Panel not getting focus
- How to build splash screen in windows forms application?
- How to bind a List to a ComboBox?
- How to access a form control for another form?
- Changing the user agent of the WebBrowser control
- ‘UserControl’ constructor with parameters in C#
- Data binding dynamic data
- List vs BindingList Advantages/DisAdvantages
- How to set the timeout for a TcpClient?
- How to detect DataGridView CheckBox event change?
- Hide Tab Header on C# TabControl
- Create dynamic buttons in a grid layout – Create a magic square UI
- Force GUI update from UI Thread
- Rounded edges in button C# (WinForms)
- Run two winform windows simultaneously
- How can I make a ComboBox non-editable in .NET?
- How to change the button text for ‘Yes’ and ‘No’ buttons in the MessageBox.Show dialog?
- How can SynchronizationContext.Current of the main thread become null in a Windows Forms application?
- Check if a record exists in the database
- Setting a Windows form to be bottommost
- Convert System.Drawing.Icon to System.Media.ImageSource
- How to recursively populate a TreeView with JSON data
- Making an indexed control array?
- Windows Forms application like Google Chrome with multiple processes
- Resize borderless window on bottom right corner
- how to sort string as number in datagridview in winforms
- Int to string: cannot convert from ‘method group’ to ‘string’ [closed]
- RichTextBox Newline Conversion?
- Winform form closed event