Public Class 抽籤
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a As String
a = Int(Rnd() * 6) + 1
Select Case a
Case 1
Label1.Text = "1:下下籤:諸事不宜"
Case 2
Label1.Text = "2:中上籤:貴人相助"
Case 3
Label1.Text = "3:中下籤:口舌之爭"
Case 4
Label1.Text = "4:平籤:保持平常心"
Case 5
Label1.Text = "5:平籤:僅心慎行"
Case 6
Label1.Text = "6:上上籤:有意外之財"
End Select
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End
End Sub
End Class
沒有留言:
張貼留言
您好,您可以以匿名方式或登入來留言.當您完成留言後請先按下"預覽"然後再按"發佈";您可以在留言內容中最上方加入"--隱藏--",您的留言便不會被公開,如果您沒有加入--隱藏--您的留言就會在被管理員確認後公開.