📄 form5.vb
字号:
Public Class Form5
Inherits System.Windows.Forms.Form
#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 Label1 As System.Windows.Forms.Label
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
Friend WithEvents btadd As System.Windows.Forms.Button
Friend WithEvents btexit As System.Windows.Forms.Button
Friend WithEvents btcancel As System.Windows.Forms.Button
Friend WithEvents btupdate As System.Windows.Forms.Button
Friend WithEvents btdelete As System.Windows.Forms.Button
Friend WithEvents txtlocation As System.Windows.Forms.Label
Friend WithEvents OleDbDataAdapter1 As System.Data.OleDb.OleDbDataAdapter
Friend WithEvents OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbInsertCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbUpdateCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbDeleteCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbConnection1 As System.Data.OleDb.OleDbConnection
Friend WithEvents Ds3 As WindowsApplication1.ds3
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.btadd = New System.Windows.Forms.Button
Me.btexit = New System.Windows.Forms.Button
Me.btcancel = New System.Windows.Forms.Button
Me.btupdate = New System.Windows.Forms.Button
Me.btdelete = New System.Windows.Forms.Button
Me.txtlocation = New System.Windows.Forms.Label
Me.OleDbDataAdapter1 = New System.Data.OleDb.OleDbDataAdapter
Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbUpdateCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbDeleteCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection
Me.Ds3 = New WindowsApplication1.ds3
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Ds3, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.Label1.Font = New System.Drawing.Font("宋体", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label1.Location = New System.Drawing.Point(120, 32)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(184, 24)
Me.Label1.TabIndex = 0
Me.Label1.Text = "修改用户"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'TextBox1
'
Me.TextBox1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds3, "用户表.用户名"))
Me.TextBox1.Location = New System.Drawing.Point(224, 200)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(128, 21)
Me.TextBox1.TabIndex = 3
Me.TextBox1.Text = ""
'
'TextBox2
'
Me.TextBox2.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds3, "用户表.密码"))
Me.TextBox2.Location = New System.Drawing.Point(224, 240)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(128, 21)
Me.TextBox2.TabIndex = 4
Me.TextBox2.Text = ""
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(40, 200)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(128, 32)
Me.Label2.TabIndex = 5
Me.Label2.Text = "用户名"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(40, 240)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(128, 24)
Me.Label3.TabIndex = 6
Me.Label3.Text = "密码"
'
'DataGrid1
'
Me.DataGrid1.DataMember = "用户表"
Me.DataGrid1.DataSource = Me.Ds3
Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGrid1.Location = New System.Drawing.Point(32, 64)
Me.DataGrid1.Name = "DataGrid1"
Me.DataGrid1.Size = New System.Drawing.Size(384, 112)
Me.DataGrid1.TabIndex = 7
'
'btadd
'
Me.btadd.Location = New System.Drawing.Point(392, 200)
Me.btadd.Name = "btadd"
Me.btadd.Size = New System.Drawing.Size(60, 20)
Me.btadd.TabIndex = 9
Me.btadd.Text = "添加"
'
'btexit
'
Me.btexit.Location = New System.Drawing.Point(392, 272)
Me.btexit.Name = "btexit"
Me.btexit.Size = New System.Drawing.Size(60, 20)
Me.btexit.TabIndex = 13
Me.btexit.Text = "退出"
'
'btcancel
'
Me.btcancel.Location = New System.Drawing.Point(312, 272)
Me.btcancel.Name = "btcancel"
Me.btcancel.Size = New System.Drawing.Size(60, 20)
Me.btcancel.TabIndex = 12
Me.btcancel.Text = "取消"
'
'btupdate
'
Me.btupdate.Location = New System.Drawing.Point(232, 272)
Me.btupdate.Name = "btupdate"
Me.btupdate.Size = New System.Drawing.Size(60, 20)
Me.btupdate.TabIndex = 11
Me.btupdate.Text = "更新"
'
'btdelete
'
Me.btdelete.Location = New System.Drawing.Point(392, 240)
Me.btdelete.Name = "btdelete"
Me.btdelete.Size = New System.Drawing.Size(60, 20)
Me.btdelete.TabIndex = 10
Me.btdelete.Text = "删除"
'
'txtlocation
'
Me.txtlocation.Location = New System.Drawing.Point(176, 272)
Me.txtlocation.Name = "txtlocation"
Me.txtlocation.Size = New System.Drawing.Size(32, 16)
Me.txtlocation.TabIndex = 14
Me.txtlocation.Visible = False
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -