📄 frmhf.frm
字号:
VERSION 5.00
Begin VB.Form frmhf
BackColor = &H00FF8080&
Caption = "数据库恢复窗口"
ClientHeight = 2145
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2145
ScaleWidth = 4680
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 2760
TabIndex = 3
Top = 1320
Width = 975
End
Begin VB.CommandButton Command1
Caption = "恢复"
Height = 495
Left = 960
TabIndex = 2
Top = 1320
Width = 975
End
Begin VB.ListBox List1
Height = 600
Left = 1920
TabIndex = 1
Top = 360
Width = 1935
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请选择文件"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 600
TabIndex = 0
Top = 360
Width = 1335
End
End
Attribute VB_Name = "frmhf"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim conn As New ADODB.Connection
Dim rshf As New ADODB.Recordset
Private Sub Command1_Click()
wenjm = List1.Text
Unload frmhf
End Sub
Private Sub Command2_Click()
Unload frmhf
End Sub
Private Sub Form_Load()
'connectstring
wenjm = ""
Dim TextLine
Open App.path + "\bfwjm.txt" For Input As #1 ' 打开文件。
Do While Not EOF(1) ' 循环至文件尾。
Line Input #1, TextLine ' 读入一行数据并将其赋予某变量。
List1.AddItem TextLine ' 在列表框中中显示数据。
Loop
Close #1 ' 关闭文件。
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -