Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
NotifyIcon1.Visible = False
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
NotifyIcon1.Visible = True
NotifyIcon1.BalloonTipIcon = ToolTipIcon.Info
NotifyIcon1.BalloonTipText = "Application working..."
NotifyIcon1.BalloonTipTitle = "TrayIcon example application"
NotifyIcon1.ShowBalloonTip(2000)
End Sub
Private Sub ShowToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ShowToolStripMenuItem.Click
Show()
End Sub
Private Sub HideToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles HideToolStripMenuItem.Click
Hide()
End Sub
Private Sub CloseToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles CloseToolStripMenuItem.Click
Close()
End Sub
End Class
Subscribe to:
Post Comments (Atom)
-
Hi again reader -- Welcome to Day 2 of 5 Bake-from-Scratch Secrets! Have you ever been intimidated to bake cupc...
-
When Christmas rolls around, gingerbread treats are one of the most popular to both bake and consume. And there's no better a...
No comments:
Post a Comment