[VB 2012] NotifyIcon on close

Status
Not open for further replies.
🚫
Exiled
Joined
Jan 3, 2007
Messages
113
Reaction score
3
just closes?

Code:
    Private Sub Form_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        Me.Hide()
        NotifyIcon1.Visible = True
    End Sub


    Private Sub NotifyIcon1_MouseDoubleClick(sender As Object, e As MouseEventArgs) Handles NotifyIcon1.MouseClick
        Me.Show()
        NotifyIcon1.Visible = False
    End Sub
 
why does this close with running the commands?

this is a dump here, it called asking for help, to make sure you dumb ppl understand ill use more words.
Code:
    Private Sub Form_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing        Me.Hide()        NotifyIcon1.Visible = True    End Sub    Private Sub NotifyIcon1_MouseDoubleClick(sender As Object, e As MouseEventArgs) Handles NotifyIcon1.MouseClick        Me.Show()        NotifyIcon1.Visible = False
End Sub
 
why does this close with running the commands?

this is a dump here, it called asking for help, to make sure you dumb ppl understand ill use more words.
Code:
    Private Sub Form_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing        Me.Hide()        NotifyIcon1.Visible = True    End Sub    Private Sub NotifyIcon1_MouseDoubleClick(sender As Object, e As MouseEventArgs) Handles NotifyIcon1.MouseClick        Me.Show()        NotifyIcon1.Visible = False
End Sub

I was going to answer your question before I noticed you just made the exact same thread after your last one was locked for being too nondescript, and to be honest I think there's some space here to learn a valuable lesson about begging for script kiddy-tier help and then calling us "dumb ppl," so instead I'm going to point you in the right direction and see if you can rub enough neurons together to get a result (hint: it's in the framework docs): Form.Close calls Form.Dispose. Good luck.
 
  • Like
Reactions: Ron
Status
Not open for further replies.
Back