Example: get and set property

Example: get property
This example uses Button1 to get the
Enabled
property and Button2 to get the
Font
property of the .NET button control. The message shows in a dialog box after clicking Button1 or Button2.
Private Sub Button1_Released() DotNetControl1.GetPropertyValue "Enabled", variantValue MsgBox variantValue End Sub Private Sub Button2_Released() DotNetControl1.GetPropertyValue "Font", variantValue MsgBox variantValue End Sub
Example: set property
This example uses Button3 to set the
Text
property and Button4 to set the
BackColor
property of the .NET button control.
Private Sub Button3_Released() DotNetControl1.SetPropertyValue "Text", "This is a button." 'The property type is String End Sub Private Sub Button4_Released() DotNetControl1.SetPropertyValue "BackColor", "Red" 'The property type is Color End Sub
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal