设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 1084|回复: 1
打印 上一主题 下一主题

[与其它组件] 一个关于ctButton的简单问题

[复制链接]
跳转到指定楼层
1#
发表于 2007-8-6 09:16:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我需要用代码来控制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

哪位大侠帮我看看,多谢。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
 楼主| 发表于 2007-8-6 11:37:30 | 只看该作者
问题解决了,
用loadpicture()谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-15 01:16 , Processed in 0.196112 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表