form4.frm

来自「16进制编辑器,VISUAL BASIC代码」· FRM 代码 · 共 72 行

FRM
72
字号
VERSION 5.00
Begin VB.Form Form4 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "添加数据"
   ClientHeight    =   1065
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   2505
   ControlBox      =   0   'False
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1065
   ScaleWidth      =   2505
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton CmdAdd 
      Caption         =   "添加"
      Default         =   -1  'True
      Height          =   375
      Left            =   120
      TabIndex        =   2
      Top             =   600
      Width           =   1095
   End
   Begin VB.CommandButton CmdCancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   1320
      TabIndex        =   1
      Top             =   600
      Width           =   1095
   End
   Begin VB.TextBox BytesToAdd 
      Height          =   375
      Left            =   120
      MaxLength       =   5
      TabIndex        =   0
      Text            =   "0"
      Top             =   120
      Width           =   2295
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub BytesToAdd_KeyPress(KeyAscii As Integer)
If Chr(KeyAscii) <> vbBack Then
    If (KeyAscii >= 48 And KeyAscii <= 57) Then
        DoEvents
    Else
        KeyAscii = 0
    End If
End If
End Sub

Private Sub CmdAdd_Click()
If BytesToAdd.Text = 0 Then Exit Sub
AddBytesToEnd (BytesToAdd.Text)
Form1.SortHex
Unload Me
End Sub

Private Sub CmdCancel_Click()
Unload Me
End Sub

Private Sub Form_Load()
AlwaysOnTop Me, True
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?