when mouse is over change image

Discussion in 'Programming General' started by kharg0, Mar 2, 2007.

when mouse is over change image
  1. Unread #1 - Mar 2, 2007 at 9:33 AM
  2. kharg0
    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0

    kharg0 Active Member

    when mouse is over change image

    when mouse is over change image basiccally i want it o be say image 1 when i hover the mouse over it it becomes image 2

    if u don't understand please tell me thx
     
  3. Unread #2 - Feb 26, 2011 at 3:05 AM
  4. Usman55
    Joined:
    Oct 11, 2008
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0

    Usman55 Newcomer

    when mouse is over change image

    You can do it like this example: Add a button. On the mouse_over event add the code: Button1.Image = sdfsfsdfdsf 'Image Path Here
     
  5. Unread #3 - Feb 26, 2011 at 3:18 AM
  6. Nemesis4895
    Joined:
    Oct 7, 2010
    Posts:
    38
    Referrals:
    0
    Sythe Gold:
    0

    Nemesis4895 Member
    Banned

    when mouse is over change image

    But with that, you also need a mouse_out event to change it back to image 1 once the mouse leaves.
     
  7. Unread #4 - Feb 26, 2011 at 12:26 PM
  8. Usman55
    Joined:
    Oct 11, 2008
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0

    Usman55 Newcomer

    when mouse is over change image

    Yes, but he didn't asked for the code. It can be done in a similar way. Just add the code to set the image to the default one in the mouseleave event. And if you haven't checked out this site before then please do. This will amazingly increase the knowledge of vb.net learners in sythe.org. But please remember than cheating/hacking and other such stuff is strictly prohibited in there.
     
  9. Unread #5 - Feb 26, 2011 at 3:44 PM
  10. Nemesis4895
    Joined:
    Oct 7, 2010
    Posts:
    38
    Referrals:
    0
    Sythe Gold:
    0

    Nemesis4895 Member
    Banned

    when mouse is over change image

    Was that directed towards me??
     
< Java Learning Log | Need help on my paint for script >

Users viewing this thread
1 guest


 
 
Adblock breaks this site