📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "BASE64编码测试"
ClientHeight = 2625
ClientLeft = 60
ClientTop = 345
ClientWidth = 6030
LinkTopic = "Form1"
ScaleHeight = 2625
ScaleWidth = 6030
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "base64_encode"
Height = 495
Left = 3360
TabIndex = 7
Top = 2040
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "base64_encode"
Height = 495
Left = 1200
TabIndex = 6
Top = 2040
Width = 2055
End
Begin VB.TextBox Text3
Height = 375
Left = 1680
TabIndex = 4
Text = "Text1"
Top = 1440
Width = 4215
End
Begin VB.TextBox Text2
Height = 375
Left = 1680
TabIndex = 2
Text = "Text1"
Top = 840
Width = 4215
End
Begin VB.TextBox Text1
Height = 375
Left = 1680
TabIndex = 0
Text = "Text1"
Top = 240
Width = 4215
End
Begin VB.Label Label3
Caption = "base64_decode"
Height = 255
Left = 360
TabIndex = 5
Top = 1560
Width = 1455
End
Begin VB.Label Label2
Caption = "base64_encode"
Height = 255
Left = 360
TabIndex = 3
Top = 960
Width = 1455
End
Begin VB.Label Label1
Caption = "原文字"
Height = 255
Left = 1080
TabIndex = 1
Top = 360
Width = 735
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()
Text2.Text = EncodeBase64String(Text1.Text) '编码,直接用下面的函数
End Sub
Private Sub Command4_Click()
Text3.Text = DecodeBase64String(Text2.Text) '解码,直接用下面的函数
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -