471,354 Members | 1,279 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Highlight a PictureBox OnMouseEnter

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
Jan 19 '06 #1
2 3710
You may be able to pick up something from Bob Powell's GDI+ FAQ.
http://www.bobpowell.net/faqmain.htm

--
Tim Wilson
..NET Compact Framework MVP

"Joe" <jb*******@noemail.noemail> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Jan 19 '06 #2
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 dont 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

Jan 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Pavils Jurjans | last post: by
reply views Thread by SamSpade | last post: by
reply views Thread by akh | last post: by
reply views Thread by =?Utf-8?B?R29yZnk=?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.