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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment