I want to load two pictures into an image control at these periods
1. When the mouse is over the image control
2. When the mouse has left the image control
I got this Lines of code (from the net) that work for
mousemove event on Picturebox control but unlucky
for me it deosn't work for Image control.
'If (X < 0) Or (Y < 0) Or (X > Picture1.Width) Or (Y > Picture1.Height) Then ' the MOUSELEAVE pseudo-event 'ReleaseCapture 'the mouse is gone, so do appropriate stuff 'Picture1.Picture = LoadPicture(App.Path & "\Images\1B.jpg ") 'ElseIf (X > 0) Or (Y > 0) Or (X < Picture1.Width) Or (Y < Picture1.Height) Then ' the MOUSEENTER pseudo-event 'SetCapture Picture1.hwnd 'the mouse is over picture box. do approrpiate stuff 'Picture1.Picture = LoadPicture(App.Path & "\Images\1BB.jpg ") 'End If
Can anyone help me with