[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.