I want to make my PictureBox change the "Button normally" picture to "Button pressed". After I held down the mouse button, PictureBox should change its image from "Button normally" to "Button pressed" and after releasing the mouse key, it should get back to "Button normally". I've uploaded my pictures down below . Thanks in advance ☺
my first image: Button normally
My second image: Button pressed
Edit: My code:
'''C#
private void pictureBox2_Up(object sender, MouseEventArgs e)
{
pictureBox2.Image = Properties.Resources.test_voice_button_pressed;
say("Hi, im Dude, your smart assistant");
//pictureBox2_Up means MouseUp and the same thing for pictureBox2_Down
}
private void pictureBox2_Down(object sender, MouseEventArgs e)
{
pictureBox2.Image = Properties.Resources.test_voice_button_normal;
}
'''