?? xueyuanzhuce.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form zhuceform
BorderStyle = 1 'Fixed Single
Caption = "學院注冊---計算中心上機收費系統"
ClientHeight = 5985
ClientLeft = 45
ClientTop = 330
ClientWidth = 6270
Icon = "XUEYUANZHUCE.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5985
ScaleWidth = 6270
StartUpPosition = 1 '所有者中心
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 3720
Visible = 0 'False
Width = 5775
_ExtentX = 10186
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 2
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=nccc.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=nccc.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 學院表 order by id desc"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame2
Height = 4695
Left = 120
TabIndex = 6
Top = 1200
Width = 6015
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "XUEYUANZHUCE.frx":030A
Height = 4335
Left = 120
TabIndex = 7
Top = 240
Width = 5775
_ExtentX = 10186
_ExtentY = 7646
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = "學院名稱"
Caption = "學院名稱"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "所屬校區"
Caption = "所屬校區"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 2759.811
EndProperty
BeginProperty Column01
ColumnWidth = 2534.74
EndProperty
EndProperty
End
End
Begin VB.Frame Frame1
Height = 1215
Left = 120
TabIndex = 0
Top = 0
Width = 6015
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 4920
TabIndex = 10
Top = 240
Width = 855
End
Begin VB.CommandButton Command4
Caption = "更改"
Height = 375
Left = 4920
TabIndex = 9
Top = 720
Width = 855
End
Begin VB.CommandButton Command3
Caption = "刪除"
Height = 375
Left = 3960
TabIndex = 8
Top = 720
Width = 855
End
Begin VB.ComboBox xiaoquxiala
Appearance = 0 'Flat
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1680
TabIndex = 4
Top = 240
Width = 2175
End
Begin VB.CommandButton Command1
Caption = "注冊"
Height = 375
Left = 3960
TabIndex = 3
Top = 240
Width = 855
End
Begin VB.TextBox xymc
Appearance = 0 'Flat
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1680
TabIndex = 1
Top = 720
Width = 2175
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "所屬校區:"
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 1
Left = 240
TabIndex = 5
Top = 240
Width = 1380
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "學院名稱:"
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 0
Left = 240
TabIndex = 2
Top = 720
Width = 1380
End
End
End
Attribute VB_Name = "zhuceform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Command1_Click()
If Len(xymc.Text) = 0 Then
MsgBox "必須填寫學院名稱!"
xymc.SetFocus
Exit Sub
End If
If xiaoquxiala.ListIndex = -1 Then
MsgBox "必須選擇所屬校區!"
xiaoquxiala.SetFocus
Exit Sub
End If
xym = xymc.Text
ssxq = xiaoquxiala.List(xiaoquxiala.ListIndex)
Adodc1.Recordset.AddNew
Adodc1.Recordset("學院名稱") = xym
Adodc1.Recordset("所屬校區") = ssxq
Adodc1.Recordset.Update
xiaoquxiala.SetFocus
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
If Adodc1.Recordset.EOF Then Exit Sub
Adodc1.Recordset.Delete
Adodc1.Refresh
End Sub
Private Sub Command4_Click()
If Adodc1.Recordset.EOF Or Adodc1.Recordset.BOF Then Exit Sub
If Len(xymc.Text) = 0 Then
MsgBox "必須填寫學院名稱!"
xymc.SetFocus
Exit Sub
End If
If xiaoquxiala.ListIndex = -1 Then
MsgBox "必須選擇所屬校區!"
xiaoquxiala.SetFocus
Exit Sub
End If
xym = xymc.Text
ssxq = xiaoquxiala.List(xiaoquxiala.ListIndex)
Adodc1.Recordset("學院名稱") = xym
Adodc1.Recordset("所屬校區") = ssxq
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
Private Sub Form_Load()
xiaoquxiala.AddItem "東校區"
xiaoquxiala.AddItem "西校區"
xiaoquxiala.AddItem "南校區"
xiaoquxiala.AddItem "北校區"
xiaoquxiala.ListIndex = 0
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set rs = Nothing
Set conn = Nothing
End Sub
Private Sub xiaoquxiala_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
xymc.SetFocus
End If
End Sub
Private Sub xymc_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1.SetFocus
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -