60 384
Assignments Done
98,1%
Successfully Done
In April 2018

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
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions