?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 8130
ClientLeft = 60
ClientTop = 345
ClientWidth = 9495
LinkTopic = "Form1"
ScaleHeight = 8130
ScaleWidth = 9495
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "保存"
Height = 495
Left = 5160
TabIndex = 2
Top = 7440
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "打開"
Height = 495
Left = 3120
TabIndex = 1
Top = 7440
Width = 1095
End
Begin VB.TextBox Text1
Height = 6975
Left = 480
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Top = 120
Width = 8415
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim FileLength As Long
Dim FileContent() As Byte
Dim FileName As String
Private Sub Command1_Click() '打開
Dim texttemp As String
Dim temp1 As String
Dim sa As String
Dim l As Long
Dim tempsa As String
Open "f:\test.txt" For Input As #1
tempsa = StrConv(InputB$(LOF(1), 1), vbUnicode)
sa = tempsa
texttemp = sa
'temp1 = StringEnDeCodecn(texttemp, 120)'解密
Close #1 '關閉文件
Text1.Text = texttemp
End Sub
Private Sub Command2_Click() '保存
Dim temp As String
Dim sa As String
Dim tempsa As String
FileName = "f:\test.txt"
FileLength = FileLen(FileName)
ReDim FileContent(FileLength)
Open "f:\test.txt" For Input As #1
tempsa = StrConv(InputB$(LOF(1), 1), vbUnicode)
sa = tempsa
temp = Trim(Trim(sa) + Trim(Text1.Text))
Close #1
Open "f:\test.txt" For Binary As #1
Put #1, , temp
Close #1
End Sub
Private Sub Form_Load()
Text1.Text = ""
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -