Office中国论坛/Access中国论坛

标题: 一个关于ctButton的简单问题 [打印本页]

作者: xinle    时间: 2007-8-6 09:16
标题: 一个关于ctButton的简单问题
我需要用代码来控制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

哪位大侠帮我看看,多谢。
作者: xinle    时间: 2007-8-6 11:37
问题解决了,
用loadpicture()谢谢!




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3