Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Change to Resource image

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    331

    Resolved [RESOLVED] [2005] Change to Resource image

    Hey guys, when I mouse over a picture box, how do I make it change to another image, but the image is in the program resources.
    How do I do this?
    Last edited by 3dmaker; Jun 12th, 2006 at 07:38 PM.
    Katya Chehova is best!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Change to Resource image

    Handle the MouseEnter and MouseLeave events and set the PictureBox's Image property from the appropriate resource property, e.g.
    VB Code:
    1. Me.PictureBox1.Image = My.Resources.MouseEnterImage
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    331

    Re: [RESOLVED] [2005] Change to Resource image

    Awesome, thanks!
    Katya Chehova is best!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width