Dim varImageLoaded As Boolean
Private Sub CommandButton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Not varImageLoaded Then
CommandButton1.Picture = LoadPicture("E:\Temp\edit.bmp")
varImageLoaded = True
End If
End Sub
Private Sub Label1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If varImageLoaded Then
CommandButton1.Picture = LoadPicture("E:\Temp\disk.bmp")
varImageLoaded = False
End If
End Sub