?? 出版社信息.vb
字號:
Public Class 出版社信息
Inherits System.Windows.Forms.Form
#Region " Windows 窗體設(shè)計器生成的代碼 "
Public Sub New()
MyBase.New()
'該調(diào)用是 Windows 窗體設(shè)計器所必需的。
InitializeComponent()
'在 InitializeComponent() 調(diào)用之后添加任何初始化
End Sub
'窗體重寫處置以清理組件列表。
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 窗體設(shè)計器所必需的
Private components As System.ComponentModel.IContainer
'注意:以下過程是 Windows 窗體設(shè)計器所必需的
'可以使用 Windows 窗體設(shè)計器修改此過程。
'不要使用代碼編輯器修改它。
Friend WithEvents OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbInsertCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents objLib出版社信息 As 圖書館管理.Lib出版社信息
Friend WithEvents OleDbConnection1 As System.Data.OleDb.OleDbConnection
Friend WithEvents OleDbDataAdapter1 As System.Data.OleDb.OleDbDataAdapter
Friend WithEvents btnUpdate As System.Windows.Forms.Button
Friend WithEvents btnCancelAll As System.Windows.Forms.Button
Friend WithEvents btnNavFirst As System.Windows.Forms.Button
Friend WithEvents btnNavPrev As System.Windows.Forms.Button
Friend WithEvents lblNavLocation As System.Windows.Forms.Label
Friend WithEvents btnNavNext As System.Windows.Forms.Button
Friend WithEvents btnLast As System.Windows.Forms.Button
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents btnDelete As System.Windows.Forms.Button
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents lbl出版社 As System.Windows.Forms.Label
Friend WithEvents lbl地址 As System.Windows.Forms.Label
Friend WithEvents edit出版社 As System.Windows.Forms.TextBox
Friend WithEvents edit地址 As System.Windows.Forms.TextBox
Friend WithEvents lbl網(wǎng)址 As System.Windows.Forms.Label
Friend WithEvents lblE_mail As System.Windows.Forms.Label
Friend WithEvents edit網(wǎng)址 As System.Windows.Forms.TextBox
Friend WithEvents editE_mail As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand()
Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection()
Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand()
Me.objLib出版社信息 = New 圖書館管理.Lib出版社信息()
Me.OleDbDataAdapter1 = New System.Data.OleDb.OleDbDataAdapter()
Me.btnUpdate = New System.Windows.Forms.Button()
Me.btnCancelAll = New System.Windows.Forms.Button()
Me.btnNavFirst = New System.Windows.Forms.Button()
Me.btnNavPrev = New System.Windows.Forms.Button()
Me.lblNavLocation = New System.Windows.Forms.Label()
Me.btnNavNext = New System.Windows.Forms.Button()
Me.btnLast = New System.Windows.Forms.Button()
Me.btnAdd = New System.Windows.Forms.Button()
Me.btnDelete = New System.Windows.Forms.Button()
Me.btnCancel = New System.Windows.Forms.Button()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.lbl出版社 = New System.Windows.Forms.Label()
Me.lbl地址 = New System.Windows.Forms.Label()
Me.edit出版社 = New System.Windows.Forms.TextBox()
Me.edit地址 = New System.Windows.Forms.TextBox()
Me.lbl網(wǎng)址 = New System.Windows.Forms.Label()
Me.lblE_mail = New System.Windows.Forms.Label()
Me.edit網(wǎng)址 = New System.Windows.Forms.TextBox()
Me.editE_mail = New System.Windows.Forms.TextBox()
CType(Me.objLib出版社信息, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox1.SuspendLayout()
Me.SuspendLayout()
'
'OleDbSelectCommand1
'
Me.OleDbSelectCommand1.CommandText = "SELECT 出版社, 地址, 網(wǎng)址, [E-mail] FROM 出版社信息"
Me.OleDbSelectCommand1.Connection = Me.OleDbConnection1
'
'OleDbConnection1
'
Me.OleDbConnection1.ConnectionString = "Provider=SQLOLEDB;Persist Security Info=False;User ID=sa;Initial Catalog=Library;" & _
"Data Source=yinlm;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=40" & _
"96;Workstation ID=YINLM;Use Encryption for Data=False;Tag with column collation " & _
"when possible=False"
'
'OleDbInsertCommand1
'
Me.OleDbInsertCommand1.CommandText = "INSERT INTO 出版社信息(出版社, 地址, 網(wǎng)址, [E-mail]) VALUES (?, ?, ?, ?); SELECT 出版社, 地址, 網(wǎng)址," & _
" [E-mail] FROM 出版社信息"
Me.OleDbInsertCommand1.Connection = Me.OleDbConnection1
Me.OleDbInsertCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("出版社", System.Data.OleDb.OleDbType.VarChar, 50, "出版社"))
Me.OleDbInsertCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("地址", System.Data.OleDb.OleDbType.VarChar, 50, "地址"))
Me.OleDbInsertCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("網(wǎng)址", System.Data.OleDb.OleDbType.VarChar, 50, "網(wǎng)址"))
Me.OleDbInsertCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("E-mail", System.Data.OleDb.OleDbType.VarChar, 50, "E-mail"))
'
'objLib出版社信息
'
Me.objLib出版社信息.DataSetName = "Lib出版社信息"
Me.objLib出版社信息.Locale = New System.Globalization.CultureInfo("zh-CN")
Me.objLib出版社信息.Namespace = "http://www.tempuri.org/Lib出版社信息.xsd"
'
'OleDbDataAdapter1
'
Me.OleDbDataAdapter1.InsertCommand = Me.OleDbInsertCommand1
Me.OleDbDataAdapter1.SelectCommand = Me.OleDbSelectCommand1
Me.OleDbDataAdapter1.TableMappings.AddRange(New System.Data.Common.DataTableMapping() {New System.Data.Common.DataTableMapping("Table", "出版社信息", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("出版社", "出版社"), New System.Data.Common.DataColumnMapping("地址", "地址"), New System.Data.Common.DataColumnMapping("網(wǎng)址", "網(wǎng)址"), New System.Data.Common.DataColumnMapping("E-mail", "E-mail")})})
'
'btnUpdate
'
Me.btnUpdate.Location = New System.Drawing.Point(280, 136)
Me.btnUpdate.Name = "btnUpdate"
Me.btnUpdate.Size = New System.Drawing.Size(72, 23)
Me.btnUpdate.TabIndex = 1
Me.btnUpdate.Text = "更新(&U)"
'
'btnCancelAll
'
Me.btnCancelAll.Location = New System.Drawing.Point(280, 168)
Me.btnCancelAll.Name = "btnCancelAll"
Me.btnCancelAll.Size = New System.Drawing.Size(72, 23)
Me.btnCancelAll.TabIndex = 2
Me.btnCancelAll.Text = "全部取消"
'
'btnNavFirst
'
Me.btnNavFirst.Location = New System.Drawing.Point(8, 168)
Me.btnNavFirst.Name = "btnNavFirst"
Me.btnNavFirst.Size = New System.Drawing.Size(40, 23)
Me.btnNavFirst.TabIndex = 11
Me.btnNavFirst.Text = "<<"
'
'btnNavPrev
'
Me.btnNavPrev.Location = New System.Drawing.Point(48, 168)
Me.btnNavPrev.Name = "btnNavPrev"
Me.btnNavPrev.Size = New System.Drawing.Size(35, 23)
Me.btnNavPrev.TabIndex = 12
Me.btnNavPrev.Text = "<"
'
'lblNavLocation
'
Me.lblNavLocation.BackColor = System.Drawing.Color.White
Me.lblNavLocation.Location = New System.Drawing.Point(80, 168)
Me.lblNavLocation.Name = "lblNavLocation"
Me.lblNavLocation.Size = New System.Drawing.Size(95, 23)
Me.lblNavLocation.TabIndex = 13
Me.lblNavLocation.Text = "無記錄"
Me.lblNavLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'btnNavNext
'
Me.btnNavNext.Location = New System.Drawing.Point(176, 168)
Me.btnNavNext.Name = "btnNavNext"
Me.btnNavNext.Size = New System.Drawing.Size(35, 23)
Me.btnNavNext.TabIndex = 14
Me.btnNavNext.Text = ">"
'
'btnLast
'
Me.btnLast.Location = New System.Drawing.Point(216, 168)
Me.btnLast.Name = "btnLast"
Me.btnLast.Size = New System.Drawing.Size(40, 23)
Me.btnLast.TabIndex = 15
Me.btnLast.Text = ">>"
'
'btnAdd
'
Me.btnAdd.Location = New System.Drawing.Point(280, 16)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(72, 23)
Me.btnAdd.TabIndex = 16
Me.btnAdd.Text = "添加(&A)"
'
'btnDelete
'
Me.btnDelete.Location = New System.Drawing.Point(280, 48)
Me.btnDelete.Name = "btnDelete"
Me.btnDelete.Size = New System.Drawing.Size(72, 23)
Me.btnDelete.TabIndex = 17
Me.btnDelete.Text = "刪除(&D)"
'
'btnCancel
'
Me.btnCancel.Location = New System.Drawing.Point(280, 80)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(72, 23)
Me.btnCancel.TabIndex = 18
Me.btnCancel.Text = "取消(&C)"
'
'GroupBox1
'
Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.lbl出版社, Me.lbl地址, Me.edit出版社, Me.edit地址, Me.lbl網(wǎng)址, Me.lblE_mail, Me.edit網(wǎng)址, Me.editE_mail})
Me.GroupBox1.Location = New System.Drawing.Point(8, 8)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(248, 152)
Me.GroupBox1.TabIndex = 19
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "出版社信息"
'
'lbl出版社
'
Me.lbl出版社.Location = New System.Drawing.Point(16, 24)
Me.lbl出版社.Name = "lbl出版社"
Me.lbl出版社.TabIndex = 11
Me.lbl出版社.Text = "出版社"
'
'lbl地址
'
Me.lbl地址.Location = New System.Drawing.Point(16, 56)
Me.lbl地址.Name = "lbl地址"
Me.lbl地址.TabIndex = 12
Me.lbl地址.Text = "地址"
'
'edit出版社
'
Me.edit出版社.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.objLib出版社信息, "出版社信息.出版社"))
Me.edit出版社.Location = New System.Drawing.Point(128, 24)
Me.edit出版社.Name = "edit出版社"
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -