SoFunction
Updated on 2025-03-06

C# overload WndProc to implement the implementation method of rewriting "minimize"


private void Form1_SizeChanged(object sender, EventArgs e) //Minimize hidden forms
{
if ( == )//The form state is minimized
{
= false;
= false;
this. = true; //Show system tray icon
this. = ; //Set the text displayed by the icon
= false; //The form is hidden in the task tag
reghotkey();
Open = "&Open";
}
}