How to create an image with Hover effect in C#

Asked

Viewed 405 times

-1

I’m making an app and I wanted when passing the mouse in the image, she changed the color for a lighter, but I can’t do it in C#...

  • 1

    an application, but it would be a correct web system? because Voce says about "pass or mouse"

  • 1

    If you are a web application you should use the javascript or mouseover event and change the color

  • windows? web? please specify.

1 answer

0


If you are using C# Windowsforms, with an image being displayed in a Picturebox, you can manipulate the Mousehover event and the Mouseleave event.

private void PictureBox1_MouseHover(object objeto, EventArgs evento){
   //Aqui você manipula o mouse sobre da PictureBox

}

private void PictureBox1_MouseLeave(object objeto, EventArgs evento){
   //Aqui você manipula a saida mouse da PictureBox

}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.