我有一个计时器,它在数字 1-6 之间滚动并落在随机数字上。问题是我有一个图片框,我需要这样做。我有骰子图像,但我不知道如何滚动所有骰子图像以匹配我下面的代码。我想让他们两个都跑,所以他们匹配。我完全被困住了!!
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
m = m + 10
If m < 1000 Then
n = Int(1 + Rnd() * 6)
LblDice.Text = n
Else
Timer1.Enabled = False
m = 0
End If
End Sub
Private Sub RollDiceBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RollDiceBtn.Click
Timer1.Enabled = True
DisplayDie(die1PictureBox)
End Sub