Highlight a PictureBox OnMouseEnter

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I have a PictureBox that we're using like a button. Is there a way to apply
a sort of highlighting to the image in the MouseEnter event?

I was thinking something like changing the color of all the pixels by a
slight factor.

Any suggestions?

-Joe
 
Hi Joe,

Thanks for posting!

For your issue, as Tim mentioned, there is an article that demonstrates how
to make GIF images transparent by using GDI+:
http://www.bobpowell.net/giftransparency.htm

However, I don¡¯t think this is an easy method to implement because we need
to repaint the images by calling more complex functions.

Based on my experience for designing, I suggest you create another image
file which is highlighted by using some tools like PhotoShop or Fireworks.
Then, you can change the Image property of the PictureBox control when the
MouseEnter event is firing.

I appreciate your understanding and hope the above information helps, if
you have any issues or concerns please let me know. I will be happy to be
of further assistance.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
 
Back
Top