68 338
Assignments Done
98,8%
Successfully Done
In November 2018

Answer to Question #20575 in Visual Basic for Michelle

Question #20575
how do you draw a face that is smiling when you click cmdSmile and then draw a face that is frowning when you click cmdFrown.
Expert's answer
Public Class Form1

Private Sub cmdSmile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSmile.Click
PictureBox1.BackgroundImage = Global.Smile.My.Resources.Resources.smile
End Sub

Private Sub cmdFrown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdFrown.Click
PictureBox1.BackgroundImage = Global.Smile.My.Resources.Resources.frown
End Sub
End Class

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions