Adblock breaks this site

when mouse is over change image

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

  1. kharg0

    kharg0 Active Member

    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  2. Usman55

    Usman55 Newcomer

    Joined:
    Oct 11, 2008
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  3. Nemesis4895

    Nemesis4895 Member
    Banned

    Joined:
    Oct 7, 2010
    Posts:
    38
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  4. Usman55

    Usman55 Newcomer

    Joined:
    Oct 11, 2008
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  5. Nemesis4895

    Nemesis4895 Member
    Banned

    Joined:
    Oct 7, 2010
    Posts:
    38
    Referrals:
    0
    Sythe Gold:
    0
    when mouse is over change image

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


 
 
Adblock breaks this site