📄 读唐诗.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 5910
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 5910
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "读取唐诗"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2040
TabIndex = 1
Top = 1800
Width = 1695
End
Begin VB.ListBox List1
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 780
ItemData = "读唐诗.frx":0000
Left = 480
List = "读唐诗.frx":0002
TabIndex = 0
Top = 480
Width = 4455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Open "静夜思.txt" For Input As #1
Do While Not EOF(1) '文件未结束时,循环
Input #1, x
List1.AddItem x
Loop
Close #1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -