jeudi 31 décembre 2015

C# IF Statments Not Working in While Loop

 while (Loop == true)
            {
                Thread.Sleep(1000);
                tt = tt + 1;
                string myString = tt.ToString();
                MessageBox.Show(myString);
                if (Keyboard.IsKeyDown(Key.T))
                {
                    MessageBox.Show("Down");
                    if (Mouse.LeftButton == MouseButtonState.Pressed)
                    {
                         MessageBox.Show("Clicked");
                    }
                 }
            }

When i run the Program it Pops up, "1", But not the Other ones when i click The Buttons or mouse.... an does not re loop to Continue the count down....

Thanks-

Aucun commentaire:

Enregistrer un commentaire