English Something is wrong...

6 replies
Goto Page
To the start Previous 1 Next To the start
28.03.14 02:15:12 pm
Up
StillerCream
User
Offline Off
Something is wrong here but...
IDK WHAT!?

IMG:http://i.imgur.com/FTmHQyb.png
IMG:https://i.imgur.com/Iw6Zg0i.png
28.03.14 02:18:15 pm
Up
Infinite Rain
Reviewer
Offline Off
...What language is that?
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
28.03.14 02:20:04 pm
Up
StillerCream
User
Offline Off
user Infinite Rain has written:
...What language is that?


Visual Basic Windows Forms
IMG:https://i.imgur.com/Iw6Zg0i.png
28.03.14 02:31:46 pm
Up
ohaz
User
Offline Off
Your ifs are within each other. How can a be 1 when it's already 0?
https://ohaz.engineer - Software Engineering
28.03.14 03:39:09 pm
Up
DannyDeth
User
Offline Off
You've nested your if statements, checking if a = 1 whilst inside something which has just shown that a = 0 will always return false.
28.03.14 03:56:18 pm
Up
Ortimh
User
Offline Off
Don't know anything about Visual Basic language. But maybe it would help.
Code:
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
I'm awesome ... and I really cookies
29.03.14 07:33:18 pm
Up
Reaper
User
Offline Off
Googled for 5 seconds. Select Case looks more suitable in my opinion.
www.cs2d.me has launched - Join Now *CLOSED*
To the start Previous 1 Next To the start