📄 frmtest.frm
字号:
VERSION 5.00
Begin VB.Form frmCheck
Caption = "ActiveEXE Executing as Stand-Alone EXE"
ClientHeight = 1305
ClientLeft = 5430
ClientTop = 4800
ClientWidth = 4710
LinkTopic = "Form1"
ScaleHeight = 1305
ScaleWidth = 4710
Begin VB.CommandButton cmdCheck
Caption = "Check Spelling"
Height = 405
Left = 2280
TabIndex = 3
Top = 120
Width = 1935
End
Begin VB.TextBox txtInput
Height = 405
Left = 840
TabIndex = 2
Top = 120
Width = 1215
End
Begin VB.Label lblPrompt
Caption = "Word:"
Height = 255
Left = 240
TabIndex = 1
Top = 195
Width = 615
End
Begin VB.Label lblDisplay
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 120
TabIndex = 0
Top = 720
Width = 4455
End
End
Attribute VB_Name = "frmCheck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Form module
Option Explicit
Private mChecker As CSpellCheckerEXE
Private Sub Form_Initialize()
Set mChecker = New CSpellCheckerEXE
End Sub
Private Sub cmdCheck_Click()
If mChecker.SpellCheckWord(txtInput.Text) Then
lblDisplay.Caption = txtInput.Text & _
" is spelled correctly."
Else
lblDisplay.Caption = txtInput.Text & _
" is spelled incorrectly."
End If
End Sub
Private Sub Form_Terminate()
Set mChecker = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -