Answer to Question #9937 in Visual Basic for Cierra Brown

Question #9937
I'm doing a project and I don't understand why my label isn't showing when I press the radio button here is my code that I have in one sub:
Private Sub radCierra_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles radCierra.Click
Dim pic1 = Me.PictureBox1.Image.Equals(My.Resources.me_final_project_brooo)
If radCierra.Checked And pic1 Then
lblAnswer.Text = "You are correct!"
End If
End Sub
1
Expert's answer
2012-05-24T09:12:07-0400
There could be some trouble with your resources -
see:
Me.PictureBox1.Image.Equals(My.Resources.me_final_project_brooo).
Try
to comment it like this:

Private Sub radCierra_Click(ByVal sender As
Object, ByVal e As
System.EventArgs) Handles radCierra.Click
Dim
pic1 =
True
'Me.PictureBox1.Image.Equals(My.Resources.me_final_project_brooo)

If radCierra.Checked And pic1 Then
lblAnswer.Text = "You are
correct!"
End If
End Sub

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