QQ网名大全

求一VB作品源代码

用记事本把下面的代码保存到Form1.Frm文件中。然后用VB打开,试试吧。
===========
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "打地鼠"
ClientHeight = 2175
ClientLeft = 45
ClientTop = 330
ClientWidth = 1860
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2175
ScaleWidth = 1860
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "开始"
Height = 375
Left = 0
TabIndex = 9
Top = 1800
Width = 615
End
Begin VB.Timer Timer1
Interval = 500
Left = 120
Top = 1920
End
Begin VB.PictureBox Picture1
Height = 615
Index = 8
Left = 1200
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 8
Top = 1200
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 7
Left = 600
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 7
Top = 1200
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 6
Left = 0
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 6
Top = 1200
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 5
Left = 1200
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 5
Top = 600
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 4
Left = 600
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 4
Top = 600
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 3
Left = 0
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 3
Top = 600
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 2
Left = 1200
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 2
Top = 0
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 1
Left = 600
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 1
Top = 0
Width = 615
End
Begin VB.PictureBox Picture1
Height = 615
Index = 0
Left = 0
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 0
Top = 0
Width = 615
End
Begin VB.Label Label1
AutoSize = -1 'True
Height = 180
Left = 720
TabIndex = 10
Top = 1920
Width = 90
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer, t As Integer
Private Sub Command1_Click()
On Error GoTo hErr
t = 2 * InputBox("请设置游戏时间,单位为秒:", , 60)
Caption = 0
Timer1.Enabled = True
Command1.Enabled = False
hErr:
End Sub

Private Sub Form_Load()
Timer1.Enabled = False
Randomize
For Each p In Picture1
p.FontName = "arial"
p.FontSize = 30
Next
End Sub

Private Sub Picture1_Click(Index As Integer)
If Index = i Then Caption = Caption + 1: t = t + 1: Timer1_Timer
End Sub

Private Sub Timer1_Timer()
For Each p In Picture1
p.Cls
Next
i = Int(Rnd * 9)
Picture1(i).Print i + 1
t = t - 1
Label1.Caption = "倒计时:" & Int(t / 2)
If t = 0 Then Timer1.Enabled = False: MsgBox "游戏结束,您共打到" & Caption & "次地鼠": i = -1: Command1.Enabled = True
End Sub
佚名
2024-06-11 13:25:06
最佳回答
类似问题(10)
  • 佚名
    2024-06-11 18:23:31

    求物流公司PHP网站源代码一份

    在这里 6000财富仅仅是10元话费仅此而已200也就三毛钱可你索取的东西 需要的不只是三五天的精力,还需要经验和付出如果换做是你,你会不会愿意?之所以遍地的程...

  • 佚名
    2024-06-11 15:27:17

    源代码是做什么的?知道了源代码能做什么?

    源代码就是源程序源代码,是指未编译的文本代码。是一系列人类可读的计算机语言指令。在现代程序语言中,源代码可以是以书籍或者磁带的形式出现,但最为常用的格式是文本文...

  • 佚名
    2024-06-11 09:54:46

    求一个整人软件源码

    你的屏幕有多少米,我给你做,还有就是,按像素点计算差不多,因为程序都是按像素点算的的哟!推按也是,

  • 佚名
    2024-06-11 03:10:29

    跪求一个小型企业网站的一个静态网页源代码+psd源文件!

    pageadmin网站管理系统、discuz系统、shopex系统,自己百度一下,免费的。

  • 佚名
    2024-06-11 09:03:40

    网页源码是什么 如何查看网页源代码

    我们打开一个网页,鼠标右击 你会看到查看源代码的选项,你点击后就会看到,另外一种是有的网站禁止鼠标右击,那么你在地址栏中添加view-source:就可以看到源...

  • 佚名
    2024-06-11 08:00:00

    最后一个字是源的股票代码

    你想找什么源,你自己还不知道吗?

  • 佚名
    2024-06-11 08:00:00

    源代码版权问题

    现在很多网络公司不是不提供源代码 是提供不出来,因为他们的数据库、后台都是集成的,提取不出来。建议你重新找家做做吧。现在做个站也不贵的,关键是服务好就行了

  • 佚名
    2024-06-11 08:00:00

    一个源代码能申请两次软件著作权

    可以,但是属于重复登记。后一登记权利无效,因为一项著作权只有一项权利。由于著作权登记并不经过实质审查,也就是不会进行排重,所以会出现重复登记也被授予证书的情况。...

  • 佚名
    2024-06-11 08:00:00

    想申请软件著作权,但源代码太长怎么办?

    如果想全面保护软件版权,但是软件程序量有过大的话,可以把软件的每个模块独立出来申报,这样就能避免以后的纠纷了。

  • 佚名
    2024-06-11 08:00:00

    电脑:什么是源代码???源代码有什么用???怎么获取源代码????

    用百度收一下吧,有一点小小的作用。如果你对编程有一点了解的话,这个就不是问题,现在怎么说呢。打个比方,我们住的房子,砖头等一些原材料就相当于软件的源代码,只是你...