终极骰子.rar

时间:2016-01-28 06:46:39
【文件属性】:

文件名称:终极骰子.rar

文件大小:132KB

文件格式:RAR

更新时间:2016-01-28 06:46:39

vb

用VB做程序赌大小 Dim a, b, c As Integer Private Sub Command1_Click() Timer1.Enabled = True If Timer1.Enabled = True Then WindowsMediaPlayer1.URL = "C:\Documents and Settings\Administrator\桌面\终极色子\Media\1683.mp3" End If End Sub Private Sub Command2_Click() Timer1.Enabled = False Dim image4_name, image5_name As String picture1_name = ".\\image\\" + "v" + ".gif" picture2_name = ".\\image\\" + "cry" + ".gif" Dim x As Integer x = a + b + c If Option1.Value = True Then If x > 9 Then Image4.Picture = LoadPicture(picture1_name) WindowsMediaPlayer1.URL = "C:\Documents and Settings\Administrator\桌面\终极色子\Media\305.mp3" Else Image4.Picture = LoadPicture(picture2_name) WindowsMediaPlayer1.URL = "C:\Documents and Settings\Administrator\桌面\终极色子\Media\1756.mp3" End If End If If Option2.Value = True Then If x <= 9 Then Image4.Picture = LoadPicture(picture1_name) WindowsMediaPlayer1.URL = "C:\Documents and Settings\Administrator\桌面\终极色子\Media\305.mp3" Else Image4.Picture = LoadPicture(picture2_name) WindowsMediaPlayer1.URL = "C:\Documents and Settings\Administrator\桌面\终极色子\Media\1756.mp3" End If End If End Sub Private Sub Form_Load() WindowsMediaPlayer1.Visible = False If Option1.Value = True Then Option2.Value = False End If If Option2.Value = True Then Option1.Value = False End If End Sub Private Sub Timer1_Timer() Timer1.Enabled = True a = Int((Rnd * 6) + 1) b = Int((Rnd * 6) + 1) c = Int((Rnd * 6) + 1) Dim image1_name, image2_name, image3_name As String image1_name = ".\\image\\" + CStr(a) + ".jpg" image2_name = ".\\image\\" + CStr(b) + ".jpg" image3_name = ".\\image\\" + CStr(c) + ".jpg" Image1.Picture = LoadPicture(image1_name) Image2.Picture = LoadPicture(image2_name) Image3.Picture = LoadPicture(image3_name) End Sub


【文件预览】:
终极骰子
----工程1.exe(28KB)
----image()
--------v.gif(3KB)
--------2.jpg(665B)
--------1.jpg(727B)
--------6.jpg(861B)
--------cry.gif(6KB)
--------3.jpg(736B)
--------5.jpg(798B)
--------4.jpg(885B)
--------Thumbs.db(19KB)
----工程1.vbp(734B)
----1frm.frm(7KB)
----Media()
--------305.mp3(23KB)
--------1683.mp3(24KB)
--------1756.mp3(58KB)
----1frm.log(92B)
----MSSCCPRJ.SCC(190B)
----工程1.vbw(54B)
----Form8.log(150B)

网友评论