|
我需要用代码来控制ctButton的picture属性,为什么这样写不行呢,提示类型错误?
Me!ctButton.Picture = Application.CurrentProject.Path & "\Images\on.bmp"
ctButton的帮助文件里是这么说的:
Specifies the main image displayed in the button.
In order to set the picture of the control, it must be either set using the picture property page of the control, the property table of the host language (if available), or by assigning a picture from another control to this one.
Syntax
[form.]ctButton.Picture [ = Picture ]
Data Type
Picture
Example
ctButton.Picture = OLE_Object.Picture
哪位大侠帮我看看,多谢。 |
|