【发布时间】:2010-10-12 12:54:51
【问题描述】:
我尝试将我的表单最小化到系统托盘,但是当我这样做时,表单消失并且通知图标不起作用:(
我做错了什么?
Private Sub Form1_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.Visible = False
NotifyIcon1.Visible = True
End If
End Sub
Private Sub NotifyIcon1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.DoubleClick, NotifyIcon1.BalloonTipClicked
Me.WindowState = FormWindowState.Normal
Me.Visible = True
NotifyIcon1.Visible = False
End Sub
我在 aspx 页面中初始化 NotificationIcon 文本、气球提示和其他内容
【问题讨论】: