私は c# は初めてですが、c++ と c は知っています。問題は、フォームがシステム トレイに最小化された後、フォームを再度表示できないことです。
それは私がそれを隠すために使用したコードです:
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
bool cursorNotInBar = Screen.GetWorkingArea(this).Contains(Cursor.Position);
if (this.WindowState == FormWindowState.Minimized && cursorNotInBar)
{
this.ShowInTaskbar = false;
notifyIcon.Visible = true;
this.Hide();
}
}