📄 conv.frm
字号:
VERSION 5.00
Begin VB.Form Form5
BorderStyle = 1 'Fixed Single
Caption = "十六进制转换"
ClientHeight = 780
ClientLeft = 4320
ClientTop = 4065
ClientWidth = 3525
LinkTopic = "Form5"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 780
ScaleWidth = 3525
Begin VB.TextBox Text2
Height = 270
Left = 1200
Locked = -1 'True
TabIndex = 5
Top = 465
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "关闭"
Height = 255
Left = 2640
TabIndex = 3
Top = 480
Width = 855
End
Begin VB.CommandButton Command1
Caption = "转换"
Enabled = 0 'False
Height = 255
Left = 2640
TabIndex = 2
Top = 120
Width = 855
End
Begin VB.TextBox Text1
Height = 270
Left = 1200
TabIndex = 0
Top = 120
Width = 1335
End
Begin VB.Label Label2
Caption = "十进制数:"
Height = 255
Left = 120
TabIndex = 4
Top = 120
Width = 975
End
Begin VB.Label Label1
Caption = "十六进制数:"
Height = 255
Left = 120
TabIndex = 1
Top = 480
Width = 1215
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Text2 = mst(Text1)
End Sub
Private Sub Command2_Click()
Me.Hide
End Sub
Private Sub Text1_Change()
If Text1 <> "" Then Command1.Enabled = True Else Command1.Enabled = False
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
Dim a As String
a = Chr$(KeyAscii)
If KeyAscii = 8 Or KeyAscii = 32 Then Exit Sub
If a Like "#" Then Exit Sub
KeyAscii = 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -