📄 frmaddress.vb
字号:
Imports System
Imports System.Data
Imports System.Data.OleDb
Public Class frmPilgrim
Inherits System.Windows.Forms.UserControl
Private pageAction As String
Private selectedItemId As Int32
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
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
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents DataGridTextBoxColumn1 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn2 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents grdData As System.Windows.Forms.DataGrid
Friend WithEvents DataGridTableStyle1 As System.Windows.Forms.DataGridTableStyle
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents txtName As System.Windows.Forms.TextBox
Friend WithEvents txtAddress As System.Windows.Forms.TextBox
Friend WithEvents pnlData As System.Windows.Forms.GroupBox
Friend WithEvents txtEmail As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents txtUrl As System.Windows.Forms.TextBox
Friend WithEvents txtHomePhone As System.Windows.Forms.TextBox
Friend WithEvents txtCellPhone As System.Windows.Forms.TextBox
Friend WithEvents txtWorkPhone As System.Windows.Forms.TextBox
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents cmbCategory As System.Windows.Forms.ComboBox
Friend WithEvents txtRemarks As System.Windows.Forms.TextBox
Friend WithEvents NameField As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents Address As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents IDField As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents dtBirthDay As System.Windows.Forms.DateTimePicker
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents btnClose As System.Windows.Forms.Button
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents btnSave As System.Windows.Forms.Button
Friend WithEvents btnDelete As System.Windows.Forms.Button
Friend WithEvents btnEdit As System.Windows.Forms.Button
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents txtSearchbyName As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents HomePhoneField As System.Windows.Forms.DataGridTextBoxColumn
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.DataGridTextBoxColumn1 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn2 = New System.Windows.Forms.DataGridTextBoxColumn
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.grdData = New System.Windows.Forms.DataGrid
Me.DataGridTableStyle1 = New System.Windows.Forms.DataGridTableStyle
Me.IDField = New System.Windows.Forms.DataGridTextBoxColumn
Me.NameField = New System.Windows.Forms.DataGridTextBoxColumn
Me.Address = New System.Windows.Forms.DataGridTextBoxColumn
Me.HomePhoneField = New System.Windows.Forms.DataGridTextBoxColumn
Me.Panel1 = New System.Windows.Forms.Panel
Me.btnClose = New System.Windows.Forms.Button
Me.btnCancel = New System.Windows.Forms.Button
Me.btnSave = New System.Windows.Forms.Button
Me.btnDelete = New System.Windows.Forms.Button
Me.btnEdit = New System.Windows.Forms.Button
Me.btnAdd = New System.Windows.Forms.Button
Me.pnlData = New System.Windows.Forms.GroupBox
Me.dtBirthDay = New System.Windows.Forms.DateTimePicker
Me.cmbCategory = New System.Windows.Forms.ComboBox
Me.Label11 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.txtRemarks = New System.Windows.Forms.TextBox
Me.Label9 = New System.Windows.Forms.Label
Me.txtUrl = New System.Windows.Forms.TextBox
Me.Label8 = New System.Windows.Forms.Label
Me.txtWorkPhone = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.txtCellPhone = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.txtHomePhone = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.txtEmail = New System.Windows.Forms.TextBox
Me.txtAddress = New System.Windows.Forms.TextBox
Me.txtName = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.txtSearchbyName = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.GroupBox1.SuspendLayout()
CType(Me.grdData, System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel1.SuspendLayout()
Me.pnlData.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'DataGridTextBoxColumn1
'
Me.DataGridTextBoxColumn1.Format = ""
Me.DataGridTextBoxColumn1.FormatInfo = Nothing
Me.DataGridTextBoxColumn1.HeaderText = "Name"
Me.DataGridTextBoxColumn1.MappingName = "Name"
Me.DataGridTextBoxColumn1.NullText = ""
Me.DataGridTextBoxColumn1.ReadOnly = True
Me.DataGridTextBoxColumn1.Width = 75
'
'DataGridTextBoxColumn2
'
Me.DataGridTextBoxColumn2.Format = ""
Me.DataGridTextBoxColumn2.FormatInfo = Nothing
Me.DataGridTextBoxColumn2.HeaderText = "Phone"
Me.DataGridTextBoxColumn2.MappingName = "Phone"
Me.DataGridTextBoxColumn2.NullText = ""
Me.DataGridTextBoxColumn2.ReadOnly = True
Me.DataGridTextBoxColumn2.Width = 75
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.grdData)
Me.GroupBox1.Controls.Add(Me.Panel1)
Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Fill
Me.GroupBox1.Location = New System.Drawing.Point(0, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(784, 246)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
'
'grdData
'
Me.grdData.DataMember = ""
Me.grdData.Dock = System.Windows.Forms.DockStyle.Fill
Me.grdData.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.grdData.Location = New System.Drawing.Point(3, 56)
Me.grdData.Name = "grdData"
Me.grdData.ReadOnly = True
Me.grdData.Size = New System.Drawing.Size(778, 187)
Me.grdData.TabIndex = 5
Me.grdData.TableStyles.AddRange(New System.Windows.Forms.DataGridTableStyle() {Me.DataGridTableStyle1})
'
'DataGridTableStyle1
'
Me.DataGridTableStyle1.DataGrid = Me.grdData
Me.DataGridTableStyle1.GridColumnStyles.AddRange(New System.Windows.Forms.DataGridColumnStyle() {Me.IDField, Me.NameField, Me.Address, Me.HomePhoneField})
Me.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGridTableStyle1.MappingName = "Address"
Me.DataGridTableStyle1.ReadOnly = True
'
'IDField
'
Me.IDField.Format = ""
Me.IDField.FormatInfo = Nothing
Me.IDField.MappingName = "ID"
Me.IDField.NullText = ""
Me.IDField.ReadOnly = True
Me.IDField.Width = 0
'
'NameField
'
Me.NameField.Format = ""
Me.NameField.FormatInfo = Nothing
Me.NameField.HeaderText = "Name"
Me.NameField.MappingName = "name"
Me.NameField.NullText = ""
Me.NameField.ReadOnly = True
Me.NameField.Width = 200
'
'Address
'
Me.Address.Format = ""
Me.Address.FormatInfo = Nothing
Me.Address.HeaderText = "Address"
Me.Address.MappingName = "Address"
Me.Address.NullText = ""
Me.Address.ReadOnly = True
Me.Address.Width = 300
'
'HomePhoneField
'
Me.HomePhoneField.Format = ""
Me.HomePhoneField.FormatInfo = Nothing
Me.HomePhoneField.HeaderText = "Home Phone"
Me.HomePhoneField.MappingName = "HomePhone"
Me.HomePhoneField.NullText = ""
Me.HomePhoneField.ReadOnly = True
Me.HomePhoneField.Width = 75
'
'Panel1
'
Me.Panel1.Controls.Add(Me.btnClose)
Me.Panel1.Controls.Add(Me.btnCancel)
Me.Panel1.Controls.Add(Me.btnSave)
Me.Panel1.Controls.Add(Me.btnDelete)
Me.Panel1.Controls.Add(Me.btnEdit)
Me.Panel1.Controls.Add(Me.btnAdd)
Me.Panel1.Dock = System.Windows.Forms.DockStyle.Top
Me.Panel1.Location = New System.Drawing.Point(3, 16)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(778, 40)
Me.Panel1.TabIndex = 6
'
'btnClose
'
Me.btnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom), System.Windows.Forms.AnchorStyles)
Me.btnClose.Location = New System.Drawing.Point(553, 4)
Me.btnClose.Name = "btnClose"
Me.btnClose.Size = New System.Drawing.Size(64, 32)
Me.btnClose.TabIndex = 12
Me.btnClose.Text = "&Close"
'
'btnCancel
'
Me.btnCancel.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom), System.Windows.Forms.AnchorStyles)
Me.btnCancel.Location = New System.Drawing.Point(481, 4)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(64, 32)
Me.btnCancel.TabIndex = 11
Me.btnCancel.Text = "Cance&l"
'
'btnSave
'
Me.btnSave.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom), System.Windows.Forms.AnchorStyles)
Me.btnSave.Location = New System.Drawing.Point(401, 4)
Me.btnSave.Name = "btnSave"
Me.btnSave.Size = New System.Drawing.Size(64, 32)
Me.btnSave.TabIndex = 7
Me.btnSave.Text = "&Save"
'
'btnDelete
'
Me.btnDelete.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom), System.Windows.Forms.AnchorStyles)
Me.btnDelete.Location = New System.Drawing.Point(321, 4)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -