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.
1
Expert's answer
2012-12-12T08:28:57-0500
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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS