📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text2
Height = 975
Left = 1440
TabIndex = 3
Top = 1680
Width = 2775
End
Begin VB.TextBox Text1
Height = 975
Left = 1440
TabIndex = 1
Top = 120
Width = 2655
End
Begin VB.Label Label2
Caption = "回文判断:"
Height = 495
Left = 240
TabIndex = 2
Top = 1800
Width = 1095
End
Begin VB.Label Label1
Caption = "输入:"
Height = 495
Left = 360
TabIndex = 0
Top = 360
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Function Ishui(ByVal ss$) As Boolean
Dim s1 As String
s1 = StrReverse(ss)
If s1 = ss Then
Ishui = True
End If
End Function
Private Sub Text1_keypress(keyascii As Integer)
Dim str As String
str = Text1.Text
If keyascii = 13 Then
If Ishui(str) = True Then
Text2.Text = Text1.Text & " *"
Else
Text2.Text = Text1.Text
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -