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

📄 form1.frm

📁 Visual Basic 6 大学教程的代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmHexOct 
   Caption         =   "Demonstrating Hex and Oct"
   ClientHeight    =   1665
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3600
   LinkTopic       =   "Form1"
   ScaleHeight     =   1665
   ScaleWidth      =   3600
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox txtOct 
      Height          =   285
      Left            =   1853
      TabIndex        =   6
      Top             =   1320
      Width           =   1215
   End
   Begin VB.TextBox txtHex 
      Height          =   285
      Left            =   533
      TabIndex        =   5
      Top             =   1320
      Width           =   1215
   End
   Begin VB.CommandButton cmdConvert 
      Caption         =   "Convert to Hex and Oct"
      Height          =   375
      Left            =   586
      TabIndex        =   4
      Top             =   600
      Width           =   2415
   End
   Begin VB.TextBox txtInput 
      Height          =   285
      Left            =   586
      TabIndex        =   3
      Top             =   240
      Width           =   2415
   End
   Begin VB.Label lbOct 
      Caption         =   "Oct value"
      Height          =   255
      Left            =   1853
      TabIndex        =   2
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label lblHex 
      Caption         =   "Hex value"
      Height          =   255
      Left            =   533
      TabIndex        =   1
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label lblInput 
      Caption         =   "Enter a decimal value to convert"
      Height          =   255
      Left            =   586
      TabIndex        =   0
      Top             =   0
      Width           =   2415
   End
End
Attribute VB_Name = "frmHexOct"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 8.14
' Demonstrating Hex$ and Oct$
Option Explicit

Private Sub cmdConvert_Click()
   txtHex.Text = Hex$(txtInput.Text)
   txtOct.Text = Oct$(txtInput.Text)
End Sub

⌨️ 快捷键说明

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