📄 frmxk.frm
字号:
VERSION 5.00
Begin VB.Form FrmXK
BorderStyle = 3 'Fixed Dialog
Caption = "添加统计学科"
ClientHeight = 2040
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 2445
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "FrmXK.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2040
ScaleWidth = 2445
ShowInTaskbar = 0 'False
Begin VB.TextBox Text1
BeginProperty Font
Name = "华文楷体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 585
Left = 1200
MaxLength = 2
TabIndex = 6
Top = 120
Width = 1095
End
Begin VB.CommandButton Command3
Caption = ">>"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1440
TabIndex = 5
TabStop = 0 'False
Top = 1320
Width = 495
End
Begin VB.CommandButton Command2
Caption = ">"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1440
TabIndex = 4
TabStop = 0 'False
Top = 1080
Width = 495
End
Begin VB.CommandButton Command1
Caption = "<"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1440
TabIndex = 3
TabStop = 0 'False
Top = 840
Width = 495
End
Begin VB.ListBox List1
BeginProperty Font
Name = "华文中宋"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1770
Left = 120
TabIndex = 2
Top = 120
Width = 855
End
Begin VB.CommandButton CancelButton
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1680
TabIndex = 1
Top = 1680
Width = 615
End
Begin VB.CommandButton OKButton
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1080
TabIndex = 0
Top = 1680
Width = 615
End
End
Attribute VB_Name = "FrmXK"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub CancelButton_Click()
Unload Me
End Sub
Private Sub Command1_Click()
If Text1.Text <> "" And List1.ListCount < 10 Then
List1.AddItem Text1.Text
Text1.Text = ""
End If
End Sub
Private Sub Command2_Click()
If List1.ListIndex > -1 Then
List1.RemoveItem List1.ListIndex
End If
End Sub
Private Sub Command3_Click()
List1.Clear
End Sub
Private Sub Form_Load()
Dim i As Integer
For i = 0 To 9
Xk(i) = "无"
Next
Dlglogin.CmdStart.Enabled = False
End Sub
Private Sub OKButton_Click()
Dim i As Integer
For i = 0 To List1.ListCount - 1
If Trim(List1.List(i)) <> "" Then
Xk(i) = List1.List(i)
Dlglogin.CmdStart.Enabled = True
End If
Next i
Unload Me
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If IsNumeric(Chr(KeyAscii)) Then
MsgBox "请输入字母或汉字!"
KeyAscii = 0
End If
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -