
This method sets a property to a control.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_AxControl_SetPictureProperty MyControlReference [as Reference] PropertyName [as String] FileName [as String]) |
Copy Code |
|---|
(Odcl_AxControl_SetPictureProperty MyControlReference [as Reference] PropertyName [as String] PictureID [as Picture]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_AxControl_SetPictureProperty ProjectFile [as String] DialogName [as String] ControlName [as String] PropertyName [as String] FileName [as String]) |
Copy Code |
|---|
(Odcl_AxControl_SetPictureProperty ProjectFile [as String] DialogName [as String] ControlName [as String] PropertyName [as String] PictureID [as Picture]) |
See the property of interest to know what string to pass.
Not all properties can be set.
Copy Code |
|---|
; Change the property (Odcl_AxControl_SetPictureProperty MyProject_MyForm_MyControl "SomeProperty" "Picture.bmp") |