命令按钮图片的运行时切换 [英] Run-time Switching of Command Button Picture

查看:74
本文介绍了命令按钮图片的运行时切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VBA代码中切换命令按钮的Picture属性时需要设置和/或更改什么?


场景是我有一个特定表的连续表单。控件(总计)太宽,无法轻松放在表单上,​​因此我将表单拆分为两个(逻辑上就是这样)。一些控件以模式A显示,其余控件以模式B显示。命令按钮我有开关模式工作正常(隐藏和显示相关控件)但我找不到如何交换命令按钮图片[ RightArrow(蓝色)]到[左箭头(蓝色)],反之亦然。

What needs to be set and/or changed when switching the Picture property of a Command Button within VBA code?

The scenario is that I have a continuous form for a particular table. The controls (in total) are too wide to fit easily on the form, so I have split the form into two (logically that is). Some controls are shown in mode A and the rest are shown in mode B. The Command Button I have that switches modes works fine (hiding and showing the relevant controls) but I can''t find how to swap the Command Button Picture from [RightArrow (Blue)] to [Left Arrow (Blue)] and vice versa.

推荐答案

我试图找到原始位图,唉我失败了,不能在任何合理的选择中找到它们。
I tried to find the original bitmaps, alas I failed, couldn''t find them in any of the logical choices.


是的,我也是。无论如何,谢谢你。赞赏。
Yeah, I did too. Thanks for looking anyway. Appreciated.



是的,我也是。无论如何,谢谢你。赞赏。
Yeah, I did too. Thanks for looking anyway. Appreciated.



我过去也遇到过这个问题。看来你不能直接访问位图。我用自己的位图替换了Access位图,它工作正常。

I''ve had problems in the past with this as well. It seems you can''t directly access the bitmaps. I replaced the Access bitmaps with my own and it works fine.


这篇关于命令按钮图片的运行时切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆