?? resultfrm.frm
字號:
VERSION 5.00
Begin VB.Form ResultFrm
BorderStyle = 0 'None
Caption = "2006年互軟年會抽獎結果公布"
ClientHeight = 10140
ClientLeft = 0
ClientTop = 0
ClientWidth = 12975
Icon = "ResultFrm.frx":0000
LinkTopic = "Form1"
ScaleHeight = 10140
ScaleWidth = 12975
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.PictureBox picPane
Appearance = 0 'Flat
AutoRedraw = -1 'True
AutoSize = -1 'True
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 12960
Left = -720
ScaleHeight = 864
ScaleMode = 3 'Pixel
ScaleWidth = 1152
TabIndex = 0
Top = -600
Width = 17280
Begin VB.CommandButton CmdStart
Caption = "金豬送大獎"
BeginProperty Font
Name = "隸書"
Size = 39.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 5880
TabIndex = 3
Top = 4320
Width = 6135
End
Begin VB.Label txtName
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
BeginProperty Font
Name = "MS Sans Serif"
Size = 41.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 855
Left = 4200
TabIndex = 4
Top = 2640
Width = 9375
End
Begin VB.Label lbName
BackStyle = 0 'Transparent
BeginProperty Font
Name = "MS Sans Serif"
Size = 29.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 615
Left = 6000
TabIndex = 2
Top = 5880
Width = 5535
End
Begin VB.Label lbResult
BackStyle = 0 'Transparent
BeginProperty Font
Name = "MS Sans Serif"
Size = 29.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2775
Left = 6480
TabIndex = 1
Top = 6600
Width = 5295
End
End
End
Attribute VB_Name = "ResultFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdStart_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim prize, prizeName As String
Me.BackColor = RGB(203, 1, 1)
picPane.Picture = LoadPicture(App.path & "/images/result.jpg")
txtName.Caption = actionName
picPane.Left = (Screen.Width - picPane.Width) / 2
picPane.Top = (Screen.Height - picPane.Height) / 2
prize = ""
CmdStart.Caption = actionInfo
Dim A As Integer, path As String, APPPATH As String
'獲得當前路徑8.3格式的短路徑名
If Right(App.path, 1) = "\" Then path = App.path Else path = App.path & "\"
APPPATH = String$(165, 0)
A = GetShortPathName(path, APPPATH, 164)
APPPATH = Left(APPPATH, InStr(APPPATH, Chr(0)) - 1)
Res = mciSendString("play " & APPPATH & "images\music.mid from 3000 to 8000", Ret, 1024, 0)
Select Case prizeType
Case 1
For i = 1 To firstCount
prize = prize & prizeFirstNum(i) & " "
If i Mod 4 = 0 Then prize = prize & vbCrLf
Next
prizeName = "一等獎"
Case 2
For i = 1 To secondCount
prize = prize & prizeSecondNum(i) & " "
If i Mod 4 = 0 Then prize = prize & vbCrLf
Next
prizeName = "二等獎"
Case 3
For i = 1 To thirdCount
prize = prize & prizeThirdNum(i) & " "
If i Mod 4 = 0 Then prize = prize & vbCrLf
Next
prizeName = "三等獎"
Case 4
For i = 1 To specialCount
prize = prize & prizeSpecialNum(i) & " "
If i Mod 4 = 0 Then prize = prize & vbCrLf
Next
prizeName = "特等獎"
End Select
lbName.Caption = prizeName & "號碼是:"
lbResult.Caption = prize
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Res = mciSendString("close all", Ret, 1024, 0)
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -