📄 form0906.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
Caption = "使用OLE显示视频简介"
ClientHeight = 3045
ClientLeft = 60
ClientTop = 450
ClientWidth = 5370
LinkTopic = "Form1"
ScaleHeight = 3045
ScaleWidth = 5370
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text2
DataField = "姓名"
DataSource = "Data1"
Height = 375
Left = 1320
TabIndex = 5
Top = 1320
Width = 1095
End
Begin VB.TextBox Text1
DataField = "学号"
DataSource = "Data1"
Height = 375
Left = 1320
TabIndex = 4
Top = 600
Width = 1095
End
Begin VB.CommandButton Command3
Caption = "打开文件"
Height = 375
Left = 3480
TabIndex = 0
Top = 2400
Width = 975
End
Begin VB.Data Data1
Caption = "学生信息"
Connect = "Access"
DatabaseName = "C:\Documents and Settings\CAO Yi\My Documents\BookVBQH\20040920\exe\StudentAd.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 495
Left = 480
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "Student"
Top = 2400
Width = 2655
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 4680
Top = 2400
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.OLE OLE1
Class = "MPlayer"
DataField = "个人简介"
DataSource = "Data1"
Height = 1695
Left = 3120
OleObjectBlob = "Form0906.frx":0000
SizeMode = 1 'Stretch
TabIndex = 6
Top = 480
Width = 2055
End
Begin VB.Label Label3
Caption = "姓名"
Height = 375
Left = 360
TabIndex = 3
Top = 1320
Width = 855
End
Begin VB.Label Label2
Caption = "学号"
Height = 255
Left = 360
TabIndex = 2
Top = 720
Width = 855
End
Begin VB.Label Label1
Caption = "个人视频简介"
Height = 255
Left = 3360
TabIndex = 1
Top = 120
Width = 1575
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command3_Click()
'单击打开文件按钮
CommonDialog1.InitDir = "C:\"
CommonDialog1.Filter = "AVI文件(*.avi)|*.avi"
CommonDialog1.Action = 1
Data1.Recordset.Edit
OLE1.CreateEmbed CommonDialog1.FileName
Data1.Recordset.Update
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -