what does

what does "value of type System.Drawing.Image. cannot be converted to boolan mean?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
        Label1.Text = (Int(Rnd() * 3)) 'pick number
        Label2.Text = (Int(Rnd() * 3))
        Label3.Text = (Int(Rnd() * 3))
        Spins = Spins + 1

        If (Label1.Text = "1") Then
            PictureBox1.Visible = System.Drawing.Image.FromFile _
                ("C:\mo\happy-cat.jpeg")

        ElseIf (Label1.Text = "2") Then
            PictureBox1.Visible = System.Drawing.Image.FromFile _
                ("C:\mo\weed1.jpeg")
        ElseIf (Label1.Text = "3") Then
            PictureBox1.Visible = System.Drawing.Image.FromFile _
                ("C:\mo\weed2.jpeg") 
What language is this? Is this VB? It's certainly not C++, so it's curious why you'd post it on a C++ forum.
Last edited on
Topic archived. No new replies allowed.