DIGIT-ARC read-only archive · snapshot: July 23, 2026

Visual Basic 6 doubts

5 posts · originally from https://geek.digit.in/community/threads/visual-basic-6-doubts.32858/

deepak.krishnan
deepak.krishnan Original post #1
Jul 28, 2006 at 4:59 PM
Hello friends
I have a doubt in Visual Basic.
I inserted a image box (not picture box) into my project and am using it as a command button by coding in its cick event. I want the picture in the image box to change when the user keeps the mouse's cursor above it. How can I do it?
gaurav_indian
Jul 28, 2006 at 5:28 PM
You have to write the coding in the "mouse over" event of the image.
A
amitgg #3
Jul 28, 2006 at 6:06 PM
You will have to use setmousecapture api.
ayush_chh
Jul 28, 2006 at 9:06 PM
yah u can use 'mouse over' event:)
deepak.krishnan
Jul 30, 2006 at 3:40 PM
gaurav_indian said:
You have to write the coding in the "mouse over" event of the image.

I tried it. But image box does not have a mouseover event enlisted in the actions. It just contains mouseicon and mousepionter.

amitgg said:
You will have to use setmousecapture api.

I did not understand. Can you please enlighten me?