📄 form1.frm
字号:
VERSION 5.00
Object = "{22D6F304-B0F6-11D0-94AB-0080C74C7E95}#1.0#0"; "MSDXM.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
Caption = "MP3播放器"
ClientHeight = 3045
ClientLeft = 60
ClientTop = 345
ClientWidth = 3165
LinkTopic = "Form1"
ScaleHeight = 3045
ScaleWidth = 3165
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Cmdload1
Caption = "Load"
Height = 375
Left = 600
TabIndex = 5
Top = 120
Width = 615
End
Begin VB.CommandButton Cmdplay1
Caption = "Play"
Height = 375
Left = 600
TabIndex = 4
Top = 720
Width = 615
End
Begin VB.CommandButton Cmdstop1
Caption = "Stop"
Height = 375
Left = 600
TabIndex = 3
Top = 1320
Width = 615
End
Begin VB.CommandButton Cmdpause1
Caption = "Pause"
Height = 375
Left = 600
TabIndex = 2
Top = 1920
Width = 615
End
Begin VB.VScrollBar Volplayer1
Height = 2295
LargeChange = 200
Left = 120
Max = -10000
SmallChange = 100
TabIndex = 1
Top = 120
Value = -10000
Width = 255
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 1440
Top = 120
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MediaPlayerCtl.MediaPlayer MediaPlayer1
Height = 375
Left = 1440
TabIndex = 0
Top = 720
Visible = 0 'False
Width = 1335
AudioStream = -1
AutoSize = 0 'False
AutoStart = -1 'True
AnimationAtStart= -1 'True
AllowScan = -1 'True
AllowChangeDisplaySize= -1 'True
AutoRewind = 0 'False
Balance = 0
BaseURL = ""
BufferingTime = 5
CaptioningID = ""
ClickToPlay = -1 'True
CursorType = 0
CurrentPosition = -1
CurrentMarker = 0
DefaultFrame = ""
DisplayBackColor= 0
DisplayForeColor= 16777215
DisplayMode = 0
DisplaySize = 4
Enabled = -1 'True
EnableContextMenu= -1 'True
EnablePositionControls= -1 'True
EnableFullScreenControls= 0 'False
EnableTracker = -1 'True
Filename = ""
InvokeURLs = -1 'True
Language = -1
Mute = 0 'False
PlayCount = 1
PreviewMode = 0 'False
Rate = 1
SAMILang = ""
SAMIStyle = ""
SAMIFileName = ""
SelectionStart = -1
SelectionEnd = -1
SendOpenStateChangeEvents= -1 'True
SendWarningEvents= -1 'True
SendErrorEvents = -1 'True
SendKeyboardEvents= 0 'False
SendMouseClickEvents= 0 'False
SendMouseMoveEvents= 0 'False
SendPlayStateChangeEvents= -1 'True
ShowCaptioning = 0 'False
ShowControls = -1 'True
ShowAudioControls= -1 'True
ShowDisplay = 0 'False
ShowGotoBar = 0 'False
ShowPositionControls= -1 'True
ShowStatusBar = 0 'False
ShowTracker = -1 'True
TransparentAtStart= 0 'False
VideoBorderWidth= 0
VideoBorderColor= 0
VideoBorder3D = 0 'False
Volume = -1440
WindowlessVideo = 0 'False
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmdload1_Click()
CommonDialog1.ShowOpen
MediaPlayer1.FileName = CommonDialog1.FileName
Volplayer1.Value = MediaPlayer1.Volume
End Sub
Private Sub Cmdpause1_Click()
MediaPlayer1.Pause
End Sub
Private Sub Cmdplay1_Click()
MediaPlayer1.Play
End Sub
Private Sub Cmdstop1_Click()
MediaPlayer1.Stop
End Sub
Private Sub Form_Deactivate()
On Error Resume Next
MediaPlayer1.Stop
End Sub
Private Sub Volplayer1_Change()
MediaPlayer1.Volume = Volplayer1.Value
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -