Example: event

In this example,
Click
and
TextChanged
events are selected on the
Events
tab, and then the VBA code triggers corresponding event actions.
Private Sub Button1_Released()
DotNetControl1.SetPropertyValue "Text", "This is a button." 'The property type is String
End Sub
Private Sub DotNetControl1_OnEvent(ByVal eventName As String, ByVal eventParametersJson As String)
If eventName = "Click" Then
MsgBox "You click the button."
ElseIf eventName = "TextChanged" Then
MsgBox "You change the button text."
End If
End Sub
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal