鬼湖拉昂错:VB程序做随机抽奖

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/03 02:55:27
哪位高手可以帮我编一个可以随机抽奖的VB程序啊,谢谢

Private Sub Command1_Click()
Randomize
Label1.Caption = Fix(Rnd * 10)
Label2.Caption = Fix(Rnd * 10)
Label3.Caption = Fix(Rnd * 10)
Labelshuzi.Caption = Fix(Rnd * 10)
If Label1.Caption = Labelshuzi.Caption Or
Label2.Caption = Labelshuzi.Caption Or
Label3.Caption =Labelshuzi.Caption Then
Image1.Visible = True
Else
Image1.Visible = False
End If
End Sub

注:此段代码可以实现自动选出三个号 Label1 Label2 Label3为选出的三个号

这有个例子

要求也不说清楚,怎么下手啊