[Help] Hide Button [Solved]

Posts 1–4 of 4 · Page 1 of 1
[Help] Hide Button [Solved]
ahh fuck need help again how do i add a hide button to hide the program or just put it to toolbar
First, add a NotifyIcon to your form.

then add this:

[php]

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

NotifyIcon1.Icon = Me.Icon
NotifyIcon1.Visible = True
NotifyIcon1.ShowBalloonTip(3000, "Im still running!", "Double click this icon to bring me back", ToolTipIcon.None)
Me.Hide()



End Sub

Private Sub NotifyIcon1_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDoubleClick

Me.Show()
NotifyIcon1.Visible = False

End Sub[/php]

And voila, you have a notify icon and your form disappears.
yes good thanks
Quote Originally Posted by Hahne View Post
yes good thanks
No problemo!
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us