📄 form4.vb
字号:
Public Class Form4
Inherits System.Windows.Forms.Form
Dim i As Integer
Dim cl As String
Dim score As String
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents TabControl1 As System.Windows.Forms.TabControl
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
Friend WithEvents TabPage3 As System.Windows.Forms.TabPage
Friend WithEvents TabPage4 As System.Windows.Forms.TabPage
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox
Friend WithEvents ComboBox2 As System.Windows.Forms.ComboBox
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents ComboBox3 As System.Windows.Forms.ComboBox
Friend WithEvents ComboBox4 As System.Windows.Forms.ComboBox
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents DataGrid4 As System.Windows.Forms.DataGrid
Friend WithEvents DataView1 As System.Data.DataView
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents Button6 As System.Windows.Forms.Button
Friend WithEvents Button7 As System.Windows.Forms.Button
Friend WithEvents Button8 As System.Windows.Forms.Button
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents ComboBox7 As System.Windows.Forms.ComboBox
Friend WithEvents Button9 As System.Windows.Forms.Button
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents ComboBox5 As System.Windows.Forms.ComboBox
Friend WithEvents Button10 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form4))
Me.TabControl1 = New System.Windows.Forms.TabControl
Me.TabPage1 = New System.Windows.Forms.TabPage
Me.Button7 = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.ComboBox2 = New System.Windows.Forms.ComboBox
Me.ComboBox1 = New System.Windows.Forms.ComboBox
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.TabPage2 = New System.Windows.Forms.TabPage
Me.Button8 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.ComboBox4 = New System.Windows.Forms.ComboBox
Me.ComboBox3 = New System.Windows.Forms.ComboBox
Me.Label5 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.TabPage3 = New System.Windows.Forms.TabPage
Me.ComboBox5 = New System.Windows.Forms.ComboBox
Me.Label6 = New System.Windows.Forms.Label
Me.Button9 = New System.Windows.Forms.Button
Me.ComboBox7 = New System.Windows.Forms.ComboBox
Me.Label9 = New System.Windows.Forms.Label
Me.Button3 = New System.Windows.Forms.Button
Me.Label8 = New System.Windows.Forms.Label
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.TabPage4 = New System.Windows.Forms.TabPage
Me.Button10 = New System.Windows.Forms.Button
Me.Button6 = New System.Windows.Forms.Button
Me.Button5 = New System.Windows.Forms.Button
Me.DataGrid4 = New System.Windows.Forms.DataGrid
Me.DataView1 = New System.Data.DataView
Me.Button4 = New System.Windows.Forms.Button
Me.TabControl1.SuspendLayout()
Me.TabPage1.SuspendLayout()
Me.TabPage2.SuspendLayout()
Me.TabPage3.SuspendLayout()
Me.TabPage4.SuspendLayout()
CType(Me.DataGrid4, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.DataView1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'TabControl1
'
Me.TabControl1.Controls.Add(Me.TabPage1)
Me.TabControl1.Controls.Add(Me.TabPage2)
Me.TabControl1.Controls.Add(Me.TabPage3)
Me.TabControl1.Controls.Add(Me.TabPage4)
Me.TabControl1.Location = New System.Drawing.Point(8, 16)
Me.TabControl1.Name = "TabControl1"
Me.TabControl1.SelectedIndex = 0
Me.TabControl1.Size = New System.Drawing.Size(328, 264)
Me.TabControl1.TabIndex = 0
'
'TabPage1
'
Me.TabPage1.BackgroundImage = CType(resources.GetObject("TabPage1.BackgroundImage"), System.Drawing.Image)
Me.TabPage1.Controls.Add(Me.Button7)
Me.TabPage1.Controls.Add(Me.Button1)
Me.TabPage1.Controls.Add(Me.TextBox1)
Me.TabPage1.Controls.Add(Me.ComboBox2)
Me.TabPage1.Controls.Add(Me.ComboBox1)
Me.TabPage1.Controls.Add(Me.Label3)
Me.TabPage1.Controls.Add(Me.Label2)
Me.TabPage1.Controls.Add(Me.Label1)
Me.TabPage1.Location = New System.Drawing.Point(4, 21)
Me.TabPage1.Name = "TabPage1"
Me.TabPage1.Size = New System.Drawing.Size(320, 239)
Me.TabPage1.TabIndex = 0
Me.TabPage1.Text = "添加成绩"
'
'Button7
'
Me.Button7.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Button7.Location = New System.Drawing.Point(144, 160)
Me.Button7.Name = "Button7"
Me.Button7.Size = New System.Drawing.Size(80, 32)
Me.Button7.TabIndex = 8
Me.Button7.Text = "取消"
'
'Button1
'
Me.Button1.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Button1.Location = New System.Drawing.Point(40, 160)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(80, 32)
Me.Button1.TabIndex = 7
Me.Button1.Text = "添加"
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(104, 120)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(120, 21)
Me.TextBox1.TabIndex = 6
Me.TextBox1.Text = ""
'
'ComboBox2
'
Me.ComboBox2.Location = New System.Drawing.Point(104, 72)
Me.ComboBox2.Name = "ComboBox2"
Me.ComboBox2.Size = New System.Drawing.Size(121, 20)
Me.ComboBox2.TabIndex = 5
'
'ComboBox1
'
Me.ComboBox1.Location = New System.Drawing.Point(104, 24)
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size = New System.Drawing.Size(121, 20)
Me.ComboBox1.TabIndex = 4
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(32, 120)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(48, 24)
Me.Label3.TabIndex = 3
Me.Label3.Text = "分数:"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(32, 72)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(72, 24)
Me.Label2.TabIndex = 2
Me.Label2.Text = "课程名称:"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(32, 24)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(56, 24)
Me.Label1.TabIndex = 1
Me.Label1.Text = "学号:"
'
'TabPage2
'
Me.TabPage2.Controls.Add(Me.Button8)
Me.TabPage2.Controls.Add(Me.Button2)
Me.TabPage2.Controls.Add(Me.ComboBox4)
Me.TabPage2.Controls.Add(Me.ComboBox3)
Me.TabPage2.Controls.Add(Me.Label5)
Me.TabPage2.Controls.Add(Me.Label4)
Me.TabPage2.Location = New System.Drawing.Point(4, 21)
Me.TabPage2.Name = "TabPage2"
Me.TabPage2.Size = New System.Drawing.Size(320, 239)
Me.TabPage2.TabIndex = 1
Me.TabPage2.Text = "删除成绩"
'
'Button8
'
Me.Button8.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Button8.Location = New System.Drawing.Point(152, 144)
Me.Button8.Name = "Button8"
Me.Button8.Size = New System.Drawing.Size(64, 32)
Me.Button8.TabIndex = 6
Me.Button8.Text = "取消"
'
'Button2
'
Me.Button2.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Button2.Location = New System.Drawing.Point(32, 144)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(64, 32)
Me.Button2.TabIndex = 5
Me.Button2.Text = "删除"
'
'ComboBox4
'
Me.ComboBox4.Location = New System.Drawing.Point(120, 72)
Me.ComboBox4.Name = "ComboBox4"
Me.ComboBox4.Size = New System.Drawing.Size(88, 20)
Me.ComboBox4.TabIndex = 4
'
'ComboBox3
'
Me.ComboBox3.Location = New System.Drawing.Point(120, 24)
Me.ComboBox3.Name = "ComboBox3"
Me.ComboBox3.Size = New System.Drawing.Size(88, 20)
Me.ComboBox3.TabIndex = 3
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(40, 72)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(72, 16)
Me.Label5.TabIndex = 2
Me.Label5.Text = "课程名称:"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(40, 24)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(48, 16)
Me.Label4.TabIndex = 1
Me.Label4.Text = "学号:"
'
'TabPage3
'
Me.TabPage3.Controls.Add(Me.ComboBox5)
Me.TabPage3.Controls.Add(Me.Label6)
Me.TabPage3.Controls.Add(Me.Button9)
Me.TabPage3.Controls.Add(Me.ComboBox7)
Me.TabPage3.Controls.Add(Me.Label9)
Me.TabPage3.Controls.Add(Me.Button3)
Me.TabPage3.Controls.Add(Me.Label8)
Me.TabPage3.Controls.Add(Me.TextBox2)
Me.TabPage3.Location = New System.Drawing.Point(4, 21)
Me.TabPage3.Name = "TabPage3"
Me.TabPage3.Size = New System.Drawing.Size(320, 239)
Me.TabPage3.TabIndex = 2
Me.TabPage3.Text = "修改成绩"
'
'ComboBox5
'
Me.ComboBox5.Location = New System.Drawing.Point(192, 80)
Me.ComboBox5.Name = "ComboBox5"
Me.ComboBox5.Size = New System.Drawing.Size(80, 20)
Me.ComboBox5.TabIndex = 13
'
'Label6
'
Me.Label6.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label6.Location = New System.Drawing.Point(8, 72)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(128, 40)
Me.Label6.TabIndex = 12
Me.Label6.Text = "请选择您要修改的课程名称:"
'
'Button9
'
Me.Button9.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Button9.Location = New System.Drawing.Point(176, 176)
Me.Button9.Name = "Button9"
Me.Button9.Size = New System.Drawing.Size(75, 40)
Me.Button9.TabIndex = 11
Me.Button9.Text = "取消"
'
'ComboBox7
'
Me.ComboBox7.Location = New System.Drawing.Point(192, 32)
Me.ComboBox7.Name = "ComboBox7"
Me.ComboBox7.Size = New System.Drawing.Size(80, 20)
Me.ComboBox7.TabIndex = 9
'
'Label9
'
Me.Label9.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label9.Location = New System.Drawing.Point(8, 32)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(184, 24)
Me.Label9.TabIndex = 8
Me.Label9.Text = "请选择您要修改的学生:"
'
'Button3
'
Me.Button3.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Button3.Location = New System.Drawing.Point(48, 176)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(75, 40)
Me.Button3.TabIndex = 7
Me.Button3.Text = "修改"
'
'Label8
'
Me.Label8.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label8.Location = New System.Drawing.Point(8, 136)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(120, 24)
Me.Label8.TabIndex = 3
Me.Label8.Text = "修改后的成绩:"
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(192, 136)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(80, 21)
Me.TextBox2.TabIndex = 6
Me.TextBox2.Text = ""
'
'TabPage4
'
Me.TabPage4.Controls.Add(Me.Button10)
Me.TabPage4.Controls.Add(Me.Button6)
Me.TabPage4.Controls.Add(Me.Button5)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -