110,555
社区成员
发帖
与我相关
我的任务
分享
Private Sub NotifyIcon1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.Click
If WindowState = FormWindowState.Minimized Then
WindowState = FormWindowState.Maximized
Activate()
NotifyIcon1.Visible = False
ShowInTaskbar = True
End If
End Sub
Private Sub MDIMain_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged
If WindowState = FormWindowState.Minimized Then
ShowInTaskbar = False
NotifyIcon1.Visible = True
End If
End Sub