隐藏所有打开的表单,包括DialogForms

时间:2012-09-19 12:16:45

标签: vb.net dialog hide minimize notifyicon

我如何hide所有打开的表单,包括所有打开的dialog formsNotifyIcon

我目前使用

隐藏主窗体
        Me.Hide()
        NotifyIcon.Visible = True
        NotifyIcon.ShowBalloonTip(1, "WinVault", "You've been lockout due to innactivity", ToolTipIcon.Info)

让表单重新显示

Private Sub NotifyIcon_MouseDoubleClick(sender As System.Object, e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon.MouseDoubleClick
    Me.Show()
End Sub

我希望所有打开的表单(包括minimize

NotifyIcon的对话框表单

使用Form.ShowDialog

显示对话框表单

0 个答案:

没有答案