呵呵,可以啊,在OnMouseMove事件中改变图片就是了。
解决方案 »
- 关于VB程序中生成EXE文件传递参数的问题
- vb如何往word里面加图片
- 一个动态链接库,知道它的具体作用,如果写的人不提供用法,能否通过什么工具查看得出来
- 大家有没有比较好的ftp客户端的源代码。最好可以支持整个目录下载的
- VB指针,内存操作
- [推荐]适合大家入门的VB好书
- 怎么能做到一种文件类型和我的vb程序关联
- 有没有让VB支持滚轮的东西??谢谢
- 它是怎么办到的呢?我用pictureBox装载图片用于浏览。但在256色下的图片效果实在“惨不妒忍睹”。而在不变的显示模式下用ACDSEE32浏览同一图片的效果却好许多。谁知道ACDSEE采用的什么方法让图片在256色下的显示效果也很好?
- 郁闷,有个2006地专家分,竟然还是4个▲!!!!!是5个落!!!郁闷
- 你的分数!
- 新手的问题:有选择的显示图片,代码如何写?
Option Explicit
Dim I, P As BooleanPrivate Sub Form_Load() Image1.Picture = LoadPicture(filename1)
Picture1.Picture = LoadPicture(filename1)End SubPrivate Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) I = False
P = False
Image1.Picture = LoadPicture(filename1)
Picture1.Picture = LoadPicture(filename1)End SubPrivate Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If Not I Then Image1.Picture = LoadPicture(filename2)
I = TrueEnd SubPrivate Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If Not P Then Picture1.Picture = LoadPicture(filename2)
P = TrueEnd Sub