Forum

> > Off Topic > Something is wrong...
Forums overviewOff Topic overviewLog in to reply

English Something is wrong...

6 replies
To the start Previous 1 Next To the start

old Re: Something is wrong...

DannyDeth
User Off Offline

Quote
You've nested your if statements, checking if a = 1 whilst inside something which has just shown that a = 0 will always return false.

old Re: Something is wrong...

Dousea
User Off Offline

Quote
Don't know anything about Visual Basic language. But maybe it would help.
1
2
3
4
5
6
7
8
9
10
PictureBox1.visible = False
PictureBox2.visible = False
PictureBox3.visible = False
If a = 0 Then
	PictureBox1.visible = True
ElseIf a = 1 Then
	PictureBox2.visible = True
ElseIf a = 2 Then
	PictureBox3.visible = True
End If
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview