ControlSetProperty Method
| Mercury.QTP.CustomServer Namespace > CustomServerBase Class : ControlSetProperty Method |
The property to set.
The arguments passed to the property set. Zero or more arguments, passed as a comma-delimited list of values. Pass parameters only of data types that can be stored in a Variant.
Sets a property of a control that is not thread-safe.
Remarks
If the InvokeRequired Property of a Control in a Windows Form is true, it is bound to a specific thread and you cannot access its properties from a different thread. Use this method to set a property of such a control.
For more information, see the MSDN documentation for System.Windows.Control.InvokeRequired.
For a Custom Server running in the testing tool context, pass only serialized types. If one of the objects in the list is not serialized, ControlSetProperty fails.
Syntax
'DeclarationProtected Sub ControlSetProperty( _ ByVal sProperty As System.String, _ ByVal ParamArray list() As System.Object _ )
Parameters
- sProperty
- The property to set.
- list
- The arguments passed to the property set. Zero or more arguments, passed as a comma-delimited list of values. Pass parameters only of data types that can be stored in a Variant.

