Hi i have a special request ... I am trying to make a normal button as minimize and exit ... I want three different picture for example button with exit:
1) Stable opened window has exit_1.png
2) When you mose-over it it display exit_2.png
3) When you mouse-leave it display again standard exit_1.png
4) When you press it (click) it display exit_3.png => this situation i dont know how to solve in Visual Basic - Thank you for help.
My code:
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Me.WindowState = FormWindowState.Minimized
PictureBox1.Image = My.Resources.exit_3
End Sub
Public Sub PictureBox1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseHover
PictureBox1.Image = My.Resources.exit_2
End Sub
Public Sub PictureBox1_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave
PictureBox1.Image = My.Resources.exit_1
End Sub
Picture exit_3 does not display with this code after clicking it. Pictures exit_2 and exit_1 are working fine.