![]() ![]() | ||
As mentioned above, you can handle events for notify icons, such as Click and DoubleClick. In the NotifyIcons example on the CD-ROM, I handle the DoubleClick event by displaying a message box, like this:
Private Sub NotifyIcon1_DoubleClick(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles NotifyIcon1.DoubleClick MsgBox("You double-clicked the icon!") End Sub
Being able to handle notify icon events lets you display control panels or bring background processes to the front as needed, which is very useful.
![]() ![]() | ||