Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

visual basic picturebox tutorial

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,062
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 30, 2010

In this tutorial i will show you guys how to make a hover effect using a picturebox control.
What we do here is when we hover over a image (text image in this example) we will have a icon shift over to the right and when we leave the picturebox the icon will shift back to it's original location

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (networking26)

  • thank you very much you are great

    it works with the timer

    it's olso work without the timer by useing this code PictureBox1.Location = New Point(Cursor.Position)a

    and i tryed this one PictureBox1.Location = New Point(Cursor.Position) + New Point(-100, -100)a

  • @7ashayology Nice, the second one you did, was that in the timer_tick event as well or a different event?

  • good job man

    I want to know the code of making the picbox move where ever the pointer move

    pictuebox1.location=new point (mousemove) what do you think

  • @7ashayology Thanks, i don't know how to make the picturebox move with the cursor unless you use a timer control.

    you could set a mouse down event for the picturebox and start the timer.

    In the timer_tick event you can try setting the picturebox1.location = cursor.position

    I don't know if this will work but it's worth a shot.

    GL

  • @7ashayology Oh yeah and set the Mouse up event and stop the timer in there

  • if you want the image in the picture box to change when clicked you could ad picturebox1.image = my.resources.(imagenamehere)

  • @XimontageiX Yes, thanks for this comment.

    You could also apply this to the mouse_hover event as well

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • thank you very much GOOD!

  • @networking26

    no Form1_MouseMove event

  • @bambucha369 And 1st comment haha sweet

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more