关于vb Image控件问题
如何实现当鼠标没放在image1时加载App.path的close.jpg这张图片,当鼠标经过Image1时加载App.Path的close_x.jpg这张图片,...
如何实现当鼠标没放在image1时加载App.path的close.jpg这张图片,当鼠标经过Image1时加载App.Path的close_x.jpg这张图片,
展开
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Picture = LoadPicture(App.Path & "\close.jpg")
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Picture = LoadPicture(App.Path & "\close_x.jpg")
End Sub
Image1.Picture = LoadPicture(App.Path & "\close.jpg")
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Picture = LoadPicture(App.Path & "\close_x.jpg")
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Caption = "鼠标离开 IAMGE1"
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Caption = "鼠标进入 IAMGE1"
End Sub
Me.Caption = "鼠标离开 IAMGE1"
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Caption = "鼠标进入 IAMGE1"
End Sub
追问
谢谢
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询