【发布时间】:2014-02-08 08:37:43
【问题描述】:
如何为 NotifyIcon 弹出 Windows 7 样式?我说的是当您单击系统托盘中的 Wifi 或电池图标时弹出的类型。就像下面的截图一样。
我猜它是 Windows 7 API 代码包的一部分,但我不知道它的正式名称。
【问题讨论】:
标签: vb.net visual-studio-2010 windows-7 notifyicon
如何为 NotifyIcon 弹出 Windows 7 样式?我说的是当您单击系统托盘中的 Wifi 或电池图标时弹出的类型。就像下面的截图一样。
我猜它是 Windows 7 API 代码包的一部分,但我不知道它的正式名称。
【问题讨论】:
标签: vb.net visual-studio-2010 windows-7 notifyicon
您可以通过构建表单来做到这一点
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Timer1.Interval = 10000
Timer1.Enabled = True
Me.ShowInTaskbar = False
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.ControlBox = False
Me.ShowIcon = False
Me.Size = New Size(200, 200)
Me.Text = ""
Dim wide As Integer = My.Computer.Screen.Bounds.Width
Dim high As Integer = My.Computer.Screen.Bounds.Height
Me.Location = New Point(wide - 200, high - 200) ' to put it in lower right corner
'set border style to fixed dialog
'set startup position to manual
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Me.Close() ' will make the window only stay open for 10 seconds
End Sub
【讨论】: