Chozo Qhai
Chozo Qhai

Reputation: 281

VB NET image as button

I'm going to change the image of button_original to button_clicked's image. how do I change the image(button) when I click them ? Should I need to use picture box anything else ?

Upvotes: 1

Views: 7174

Answers (1)

Nadeem_MK
Nadeem_MK

Reputation: 7699

In vb.NET, if you're using an image on a button, to change it, you can change the property Image of the button in the Button_Click() event.

Private Sub Button_Click(sender As Object, e As EventArgs) Handles Button.Click

     Button.Image = ... <- your image

 End Sub

Upvotes: 1

Related Questions