08-01-14, 10:13 AM
Add the following tools to form :
NotifyIcon1
ContextMenuStrip1
Change NotifyIcon1 ContextMenuStrip property to ContextMenuStrip1
Add 2 item to ContextMenuStrip1 :
Exit
Show
And then add the following codes :
NotifyIcon1
ContextMenuStrip1
Change NotifyIcon1 ContextMenuStrip property to ContextMenuStrip1
Add 2 item to ContextMenuStrip1 :
Exit
Show
And then add the following codes :
كود :
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
Me.Hide()
End Sub
كود :
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
End
End Sub
كود :
Private Sub ShowToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowToolStripMenuItem.Click
Me.Show()
End Sub
{ يَرْفَعِ اللَّهُ الَّذِينَ آمَنُوا مِنكُمْ وَالَّذِينَ أُوتُوا الْعِلْمَ دَرَجَاتٍ }
" Mohamed M. Bedair - " Abu Anas
Genius Live , Egypt