⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form4.frm

📁 一个完整的用VB实现的16进制编辑器程序的源代码
💻 FRM
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -