📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form frmCase
Caption = "Converting strings to upper and lower case"
ClientHeight = 2310
ClientLeft = 60
ClientTop = 345
ClientWidth = 4950
LinkTopic = "Form1"
ScaleHeight = 2310
ScaleWidth = 4950
StartUpPosition = 3 'Windows Default
Begin VB.TextBox txtLowerCase
Height = 285
Left = 0
TabIndex = 5
Top = 2040
Width = 4935
End
Begin VB.TextBox txtInput
Height = 285
Left = 0
TabIndex = 3
Top = 360
Width = 4935
End
Begin VB.CommandButton cmdConvert
Caption = "Convert"
Height = 375
Left = 0
TabIndex = 2
Top = 720
Width = 1815
End
Begin VB.TextBox txtUpperCase
Height = 285
Left = 0
TabIndex = 1
Top = 1440
Width = 4935
End
Begin VB.Label lbLowerCase
Caption = "The phrase is lowercase is"
Height = 255
Left = 0
TabIndex = 6
Top = 1800
Width = 3015
End
Begin VB.Label lbUpperCase
Caption = "The phrase in uppercase is"
Height = 255
Left = 0
TabIndex = 4
Top = 1200
Width = 3015
End
Begin VB.Label lblInput
Caption = "Enter phrase"
Height = 255
Left = 0
TabIndex = 0
Top = 120
Width = 2295
End
End
Attribute VB_Name = "frmCase"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 8.11
' Demonstrating UCase$ and LCase$
Option Explicit
Private Sub cmdConvert_Click()
txtUpperCase.Text = UCase$(txtInput.Text)
txtLowerCase.Text = LCase$(txtInput.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -