📄 form10.frm
字号:
VERSION 5.00
Begin VB.Form frmCheck
BackColor = &H00FFC0C0&
Caption = "单词查询"
ClientHeight = 3150
ClientLeft = 60
ClientTop = 390
ClientWidth = 4680
LinkTopic = "Form10"
ScaleHeight = 3150
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
Begin VB.PictureBox Picture1
Height = 9615
Left = 1200
Picture = "Form10.frx":0000
ScaleHeight = 9555
ScaleWidth = 8835
TabIndex = 8
Top = 1200
Width = 8895
End
Begin VB.CommandButton cmdCheck
Caption = "查找"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 10920
TabIndex = 7
Top = 10200
Width = 2055
End
Begin VB.CommandButton cmdCancel
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 13320
TabIndex = 6
Top = 10200
Width = 2055
End
Begin VB.CommandButton cmdReturn
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 15720
TabIndex = 5
Top = 10200
Width = 2055
End
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "字典信息管理"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 8175
Left = 10800
TabIndex = 0
Top = 1080
Width = 6495
Begin VB.TextBox txtWord
Height = 495
Left = 2640
TabIndex = 2
Top = 960
Width = 2895
End
Begin VB.TextBox txtTranslate
Height = 5175
Left = 720
TabIndex = 1
Top = 2520
Width = 4815
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
Caption = "英文单词:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 4
Top = 1080
Width = 2295
End
Begin VB.Label Label4
BackColor = &H00FFC0C0&
Caption = "汉语翻译(词性,解释,例句等):"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 3
Top = 1920
Width = 5655
End
End
End
Attribute VB_Name = "frmCheck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
txtWord.Text = ""
txtTranslate.Text = ""
txtTranslate.SetFocus
End Sub
Private Sub cmdCheck_Click()
txtsql = "select * from 单词表 where 英文单词='" & Text1 & "' "
Set Rs = ExecuteSQL(txtsql, MsgText)
If Rs.EOF = True Then
MsgBox "输入单词错误,请重新输入", vbexlamation, "警告"
txtWord.Text = ""
Else
txtTranslate.Text = Rs!汉语翻译
End If
End Sub
Private Sub cmdReturn_Click()
Unload Me
frmOdinaryUser.Show
End Sub
Private Sub Form_Load()
Call Module1.connection
Dim textsql As String
Dim MsgText As String
Dim Rs As New ADODB.Recordse
txtWord.SetFocus
End Sub
Private Sub Form_Unload(Cancel As Integer)
Rs.Close
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -