Highlight a PictureBox OnMouseEnter

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
 
Y

Yuan Ren[MSFT]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top