G
Guest
I am using VB Net 2005 and want to use the notifyicon. I do not have a
form, only a class. I have no problems showing or modifying the
NotifyIcon, however, I am having a problem handling the click event. I
have tried unsuccessfully using AddHandler:
AddHandler nIcon.Click AddressOf nIcon_Click
Private Sub nIcon_Click(ByVal sender As Object, ByVal e As EventArgs)
MsgBox("Click")
End Sub
Any help would be greatly appreciated.
form, only a class. I have no problems showing or modifying the
NotifyIcon, however, I am having a problem handling the click event. I
have tried unsuccessfully using AddHandler:
AddHandler nIcon.Click AddressOf nIcon_Click
Private Sub nIcon_Click(ByVal sender As Object, ByVal e As EventArgs)
MsgBox("Click")
End Sub
Any help would be greatly appreciated.