Interface

ActionNotificationReceiver


Description

An ActionSource object calls the PerformAction method of each ActionNotificationReceiver registered with it.

Methods

Name

Parameters

Returns

Shared

PerformAction

Method descriptions


ActionNotificationReceiver.PerformAction

PerformAction

The method called for this receiver to run its action.

Notes

If you implement this interface in your application, you must implement the methods with the parameters as shown here.

Sample code

If you want to have a DesktopButton call PerformAction on an ActionNotificationReceiver then you would create a new class (perhaps ActionNotificationTest) that implements ActionNotificationReceiver. In the PerformAction method, you add the code you want to run when the button is clicked (and before DesktopButton.Pressed-Event is called). For example:

MessageBox("PerformAction called.")

Now in the Opening event handler for a DesktopButton, you can add your receiver:

Var action As New ActionNotificationTest
Me.AddActionNotificationReceiver(action)

Compatibility

All project types on all supported operating systems.

See also

ActionSource