JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Handling Notify Icon Events

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.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor