Visual Basic (Problem)

Dieses Thema im Forum "Programmierung" wurde erstellt von Ich5003, 9. März 2013.

  1. Ich5003
    Offline

    Ich5003

    Registriert seit:
    9. Januar 2012
    Beiträge:
    341
    Minecraft:
    ich5003
    Hallo Leute, ich habe folgenden Code:
    Code (Text):
    1.         Dim choose_(points) As Integer
    2.         Dim round As Integer = 0
    3.         choose_(points) = random.Next(1, 5)
    4.         Do
    5.             MsgBox(choose_(points))
    6.             If choose_(round) = 1 Then btn_green.BackColor = Color.White
    7.             If choose_(round) = 2 Then btn_red.BackColor = Color.White
    8.             If choose_(round) = 3 Then btn_yellow.BackColor = Color.White
    9.             If choose_(round) = 4 Then btn_blue.BackColor = Color.White
    10.             threading.thread.sleep(2000)
    11.             btn_green.BackColor = Color.Green
    12.             btn_red.BackColor = Color.Red
    13.             btn_yellow.BackColor = Color.Yellow
    14.             btn_blue.BackColor = Color.Blue
    15.             round += 1
    16.         Loop Until round > points
    Nur leider ändert sich die Farbe meiner Button nicht, was soll ich tun?
     
    #1