G
Gita George
Consider this code:
Public I As New NotifyIcon
Public mnuPopUp As New ContextMenu
Public WithEvents mnuSetari As New MenuItem
Public WithEvents mnuExit As New MenuItem
Sub Main()
mnuSetari.Index = 0
mnuSetari.Text = "SETARI"
mnuExit.Index = 0
mnuExit.Text = "Exit"
mnuPopUp.MenuItems.Add(mnuSetari)
mnuPopUp.MenuItems.Add(mnuExit)
I.Text = "NO NEW MAIL"
I.ContextMenu = mnuPopUp
I.Visible = True
While Not (check_timer Is Nothing)
System.Threading.Thread.Sleep(100)
End While
End Sub
When I press my mouse right buton the menu mnuPopUp doesn;t show up.
Can you provide me a workaround for this problem ?
Thanks in advance ...
Public I As New NotifyIcon
Public mnuPopUp As New ContextMenu
Public WithEvents mnuSetari As New MenuItem
Public WithEvents mnuExit As New MenuItem
Sub Main()
mnuSetari.Index = 0
mnuSetari.Text = "SETARI"
mnuExit.Index = 0
mnuExit.Text = "Exit"
mnuPopUp.MenuItems.Add(mnuSetari)
mnuPopUp.MenuItems.Add(mnuExit)
I.Text = "NO NEW MAIL"
I.ContextMenu = mnuPopUp
I.Visible = True
While Not (check_timer Is Nothing)
System.Threading.Thread.Sleep(100)
End While
End Sub
When I press my mouse right buton the menu mnuPopUp doesn;t show up.
Can you provide me a workaround for this problem ?
Thanks in advance ...