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

📄 转换器.frm

📁 这是用vb编写的一个转换器
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "字母转换器"
   ClientHeight    =   3150
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3150
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "结束"
      Height          =   375
      Left            =   3960
      TabIndex        =   5
      Top             =   2160
      Width           =   615
   End
   Begin VB.CommandButton Command1 
      Caption         =   "清屏"
      Height          =   375
      Left            =   3960
      TabIndex        =   4
      Top             =   720
      Width           =   615
   End
   Begin VB.TextBox Text2 
      Height          =   975
      Left            =   840
      TabIndex        =   3
      Top             =   1920
      Width           =   2895
   End
   Begin VB.TextBox Text1 
      Height          =   975
      Left            =   840
      TabIndex        =   2
      Top             =   480
      Width           =   2895
   End
   Begin VB.Label Label2 
      Caption         =   "输出字符串"
      ForeColor       =   &H00C000C0&
      Height          =   975
      Left            =   240
      TabIndex        =   1
      Top             =   1920
      Width           =   255
   End
   Begin VB.Label Label1 
      Caption         =   "输入字符串"
      ForeColor       =   &H00C000C0&
      Height          =   975
      Left            =   240
      TabIndex        =   0
      Top             =   480
      Width           =   255
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Text1.Text = ""
Text1.Text = ""
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
Dim r As String * 1
r = Chr$(KeyAscii)
Select Case r
Case "a" To "z"
r = Chr$(KeyAscii - 32)
Case "A" To "Z"
r = Chr$(KeyAscii + 32)
Case " "


Case Else
r = "*"
End Select
Text2.Text = r
End Sub

⌨️ 快捷键说明

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