?? a教師設置.frm
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form A教師設置
Caption = "教師設置"
ClientHeight = 5235
ClientLeft = 60
ClientTop = 345
ClientWidth = 6360
LinkTopic = "Form3"
ScaleHeight = 5235
ScaleWidth = 6360
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame2
Caption = "編輯教師信息"
Height = 2535
Left = 0
TabIndex = 2
Top = 2640
Width = 6255
Begin VB.ComboBox CboCourse
Height = 315
Left = 1200
TabIndex = 19
Top = 720
Width = 1575
End
Begin VB.TextBox txtEmail
Appearance = 0 'Flat
Height = 375
Left = 1200
MaxLength = 50
TabIndex = 17
Top = 1200
Width = 4815
End
Begin VB.Frame Frame4
Height = 735
Left = 720
TabIndex = 6
Top = 1680
Width = 5295
Begin VB.CommandButton CmdSave
BackColor = &H00C0C0C0&
Caption = "保存"
Enabled = 0 'False
Height = 360
Left = 2640
Style = 1 'Graphical
TabIndex = 12
Top = 240
Width = 800
End
Begin VB.CommandButton CmdAdd
BackColor = &H00C0C0C0&
Caption = "添加"
Height = 360
Left = 240
Style = 1 'Graphical
TabIndex = 11
Top = 240
Width = 800
End
Begin VB.CommandButton CmdDelete
BackColor = &H00C0C0C0&
Caption = "刪除"
Height = 360
Left = 1845
Style = 1 'Graphical
TabIndex = 10
Top = 240
Width = 800
End
Begin VB.CommandButton CmdCancel
BackColor = &H00C0C0C0&
Caption = "取消"
Height = 360
Left = 3435
Style = 1 'Graphical
TabIndex = 9
Top = 240
Width = 800
End
Begin VB.CommandButton CmdExit
BackColor = &H00C0C0C0&
Caption = "退出"
Height = 360
Left = 4230
Style = 1 'Graphical
TabIndex = 8
Top = 240
Width = 800
End
Begin VB.CommandButton CmdModify
BackColor = &H00C0C0C0&
Caption = "修改"
Height = 360
Left = 1050
Style = 1 'Graphical
TabIndex = 7
Top = 240
Width = 800
End
End
Begin VB.TextBox txtName
Appearance = 0 'Flat
Height = 375
Left = 4440
MaxLength = 50
TabIndex = 5
Top = 240
Width = 1575
End
Begin VB.TextBox txtId
Appearance = 0 'Flat
Height = 375
Left = 1200
MaxLength = 6
TabIndex = 4
Top = 240
Width = 1575
End
Begin VB.TextBox txtPhone
Appearance = 0 'Flat
Height = 375
Left = 4440
MaxLength = 50
TabIndex = 3
Top = 720
Width = 1575
End
Begin VB.Label Label8
Caption = "(6位)"
ForeColor = &H000000FF&
Height = 255
Index = 1
Left = 2880
TabIndex = 20
Top = 360
Width = 495
End
Begin VB.Label Label2
Caption = "郵箱:"
Height = 375
Left = 600
TabIndex = 18
Top = 1320
Width = 855
End
Begin VB.Label Label1
Caption = "電話:"
Height = 255
Index = 3
Left = 3480
TabIndex = 16
Top = 840
Width = 975
End
Begin VB.Label Label1
Caption = "所任課程:"
Height = 255
Index = 2
Left = 240
TabIndex = 15
Top = 840
Width = 975
End
Begin VB.Label Label1
Caption = "教師姓名:"
Height = 255
Index = 1
Left = 3480
TabIndex = 14
Top = 360
Width = 975
End
Begin VB.Label Label1
Caption = "教師編號:"
Height = 255
Index = 0
Left = 240
TabIndex = 13
Top = 360
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "教師列表"
Height = 2535
Left = 0
TabIndex = 0
Top = 0
Width = 6255
Begin MSComctlLib.ListView ListView1
Height = 2175
Left = 120
TabIndex = 1
Top = 240
Width = 6015
_ExtentX = 10610
_ExtentY = 3836
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
Icons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 0
NumItems = 0
End
Begin MSComctlLib.ImageList ImageList1
Left = 240
Top = 480
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "A教師設置.frx":0000
Key = ""
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "A教師設置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim rs As ADODB.Recordset
Dim SQL As String
Dim msg As String
Dim index As Integer
Dim flag As String '判斷是新增記錄還是修改記錄
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -