标题:想实现切换图片功能
只看楼主
kaixinsiqi
Rank: 1
等 级:新手上路
帖 子:186
专家分:0
注 册:2006-11-28
 问题点数:0 回复次数:1 
想实现切换图片功能
我想在鼠标移到picturebox图片上时,换一张图片显示,怎么实现呀?急用,会者帮我一下,谢谢
2006-12-04 12:47
bygg
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:乖乖的心中
等 级:版主
威 望:241
帖 子:13555
专家分:3076
注 册:2006-10-23
得分:0 
[CODE]

Private Sub PictureBox1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseEnter
Me.PictureBox1.Image = ImageList1.Images(0)
End Sub

Private Sub PictureBox1_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave
Me.PictureBox1.Image = ImageList1.Images(1)
End Sub

[/CODE]

飘过~~
2006-12-04 17:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-107161-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.104710 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved