Configure .NET control event scripts
- Last UpdatedNov 26, 2024
- 2 minute read
You can configure a System Platform script that runs when a .NET control event occurs. You do this using the Event animation.
Configure a System Platform script for a .NET control event
-
Double-click the embedded .NET control on the canvas.
The Edit Animations dialog appears.
-
In the animation list, click Event.
The right pane shows the events configuration.

-
In the Event list, select the event for which you want to execute a script.
The Parameters list shows for the selected event:
-
Type: the data type of each parameter.
-
Name: the name of each parameter.
-
-
In the script area, write the event script.
-
If you want to insert an event parameter in your script, click the Browse Event Parameters icon. Select the parameter. The parameter name is inserted into the script at the cursor position.

-
If you want to configure scripts for other events, select the event from the Event list.
You can select the following three main events from the Event list:
-
SelectedRowChanged
-
PreButtonClick
-
PostButtonClick
-
-
The script area is cleared and you can write the script for the newly selected event.
-
When you are finished, save and close.