⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.vb

📁 基于vb.net的简单通信录
💻 VB
📖 第 1 页 / 共 5 页
字号:
Imports System.IO
Imports System.Xml.Serialization
'//串行化为XML文档
Imports System.Xml
Imports System.Runtime.Serialization.Formatters.Binary
'//串行化为二进制文档
Imports System.Runtime.Serialization.Formatters.Soap
'//串行化为Soap文档
Imports Microsoft.VisualBasic

Public Class Form1
    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 ListBox1 As System.Windows.Forms.ListBox
    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 Label4 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents txtName As System.Windows.Forms.TextBox
    Friend WithEvents txtTel As System.Windows.Forms.TextBox
    Friend WithEvents txtaddress As System.Windows.Forms.TextBox
    Friend WithEvents txtage As System.Windows.Forms.TextBox
    Friend WithEvents txtbirthday As System.Windows.Forms.TextBox
    Friend WithEvents btnInsert As System.Windows.Forms.Button
    Friend WithEvents btnFind As System.Windows.Forms.Button
    Friend WithEvents txtmovebal As System.Windows.Forms.TextBox
    Friend WithEvents txtEmail As System.Windows.Forms.TextBox
    Friend WithEvents btnPre As System.Windows.Forms.Button
    Friend WithEvents btnNext As System.Windows.Forms.Button
    Friend WithEvents btnAdd As System.Windows.Forms.Button
    Friend WithEvents btnAddOk As System.Windows.Forms.Button
    Friend WithEvents btnInsertOk As System.Windows.Forms.Button
    Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
    Friend WithEvents MenuItem21 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuFile As System.Windows.Forms.MenuItem
    Friend WithEvents mnuPlay As System.Windows.Forms.MenuItem
    Friend WithEvents meuHelp As System.Windows.Forms.MenuItem
    Friend WithEvents mnuSave As System.Windows.Forms.MenuItem
    Friend WithEvents mnuQuit As System.Windows.Forms.MenuItem
    Friend WithEvents mnuLook As System.Windows.Forms.MenuItem
    Friend WithEvents mnuAdd As System.Windows.Forms.MenuItem
    Friend WithEvents mnuAddOk As System.Windows.Forms.MenuItem
    Friend WithEvents mnuInsert As System.Windows.Forms.MenuItem
    Friend WithEvents mnuInsertOk As System.Windows.Forms.MenuItem
    Friend WithEvents mnuRemove As System.Windows.Forms.MenuItem
    Friend WithEvents mnuClear As System.Windows.Forms.MenuItem
    Friend WithEvents mnuNext As System.Windows.Forms.MenuItem
    Friend WithEvents mnuPre As System.Windows.Forms.MenuItem
    Friend WithEvents mnuHelpFile As System.Windows.Forms.MenuItem
    Friend WithEvents mnuAbout As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
    Friend WithEvents btnClear As System.Windows.Forms.Button
    Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
    Friend WithEvents tblAdd As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblAddOk As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblLine1 As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblInsert As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblInsertOk As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblLine2 As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblRemove As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblClear As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblLine3 As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblPre As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblNext As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblLine4 As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblSave As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblFind As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblLine5 As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblHelp As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblExit As System.Windows.Forms.ToolBarButton
    Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
    Friend WithEvents mnuLine0 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuLine9 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuLine6 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuLine8 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuXiuGai As System.Windows.Forms.MenuItem
    Friend WithEvents mnuZiuGaiOk As System.Windows.Forms.MenuItem
    Friend WithEvents mnuLine4 As System.Windows.Forms.MenuItem
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents txtSex As System.Windows.Forms.TextBox
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents txtCompany As System.Windows.Forms.TextBox
    Friend WithEvents Sta As System.Windows.Forms.StatusBar
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents Sta1 As System.Windows.Forms.StatusBarPanel
    Friend WithEvents Sta2 As System.Windows.Forms.StatusBarPanel
    Friend WithEvents Sta3 As System.Windows.Forms.StatusBarPanel
    Friend WithEvents txtQQ As System.Windows.Forms.TextBox
    Friend WithEvents MenuItem3 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuPrint As System.Windows.Forms.MenuItem
    Friend WithEvents tblRepair As System.Windows.Forms.ToolBarButton
    Friend WithEvents btlRepairOk As System.Windows.Forms.ToolBarButton
    Friend WithEvents tblline0 As System.Windows.Forms.ToolBarButton
    Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.ListBox1 = New System.Windows.Forms.ListBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.txtName = New System.Windows.Forms.TextBox
        Me.txtTel = New System.Windows.Forms.TextBox
        Me.txtaddress = New System.Windows.Forms.TextBox
        Me.txtage = New System.Windows.Forms.TextBox
        Me.txtbirthday = New System.Windows.Forms.TextBox
        Me.Label5 = New System.Windows.Forms.Label
        Me.btnClear = New System.Windows.Forms.Button
        Me.btnAdd = New System.Windows.Forms.Button
        Me.btnAddOk = New System.Windows.Forms.Button
        Me.btnInsert = New System.Windows.Forms.Button
        Me.btnFind = New System.Windows.Forms.Button
        Me.txtmovebal = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.txtEmail = New System.Windows.Forms.TextBox
        Me.Label7 = New System.Windows.Forms.Label
        Me.btnPre = New System.Windows.Forms.Button
        Me.btnNext = New System.Windows.Forms.Button
        Me.btnInsertOk = New System.Windows.Forms.Button
        Me.MainMenu1 = New System.Windows.Forms.MainMenu
        Me.mnuFile = New System.Windows.Forms.MenuItem
        Me.mnuSave = New System.Windows.Forms.MenuItem
        Me.MenuItem2 = New System.Windows.Forms.MenuItem
        Me.MenuItem1 = New System.Windows.Forms.MenuItem
        Me.MenuItem4 = New System.Windows.Forms.MenuItem
        Me.mnuPrint = New System.Windows.Forms.MenuItem
        Me.MenuItem3 = New System.Windows.Forms.MenuItem
        Me.mnuQuit = New System.Windows.Forms.MenuItem
        Me.mnuPlay = New System.Windows.Forms.MenuItem
        Me.mnuLook = New System.Windows.Forms.MenuItem
        Me.mnuLine0 = New System.Windows.Forms.MenuItem
        Me.mnuAdd = New System.Windows.Forms.MenuItem
        Me.mnuAddOk = New System.Windows.Forms.MenuItem
        Me.mnuLine9 = New System.Windows.Forms.MenuItem
        Me.mnuInsert = New System.Windows.Forms.MenuItem
        Me.mnuInsertOk = New System.Windows.Forms.MenuItem
        Me.mnuLine6 = New System.Windows.Forms.MenuItem
        Me.mnuRemove = New System.Windows.Forms.MenuItem
        Me.mnuClear = New System.Windows.Forms.MenuItem
        Me.mnuLine8 = New System.Windows.Forms.MenuItem
        Me.mnuXiuGai = New System.Windows.Forms.MenuItem
        Me.mnuZiuGaiOk = New System.Windows.Forms.MenuItem
        Me.mnuLine4 = New System.Windows.Forms.MenuItem
        Me.mnuPre = New System.Windows.Forms.MenuItem
        Me.mnuNext = New System.Windows.Forms.MenuItem
        Me.meuHelp = New System.Windows.Forms.MenuItem
        Me.mnuHelpFile = New System.Windows.Forms.MenuItem
        Me.MenuItem21 = New System.Windows.Forms.MenuItem
        Me.mnuAbout = New System.Windows.Forms.MenuItem
        Me.ToolBar1 = New System.Windows.Forms.ToolBar
        Me.tblAdd = New System.Windows.Forms.ToolBarButton
        Me.tblAddOk = New System.Windows.Forms.ToolBarButton
        Me.tblLine1 = New System.Windows.Forms.ToolBarButton
        Me.tblInsert = New System.Windows.Forms.ToolBarButton
        Me.tblInsertOk = New System.Windows.Forms.ToolBarButton
        Me.tblLine2 = New System.Windows.Forms.ToolBarButton
        Me.tblRepair = New System.Windows.Forms.ToolBarButton
        Me.btlRepairOk = New System.Windows.Forms.ToolBarButton
        Me.tblline0 = New System.Windows.Forms.ToolBarButton
        Me.tblRemove = New System.Windows.Forms.ToolBarButton
        Me.tblClear = New System.Windows.Forms.ToolBarButton
        Me.tblLine3 = New System.Windows.Forms.ToolBarButton
        Me.tblPre = New System.Windows.Forms.ToolBarButton
        Me.tblNext = New System.Windows.Forms.ToolBarButton
        Me.tblLine4 = New System.Windows.Forms.ToolBarButton
        Me.tblSave = New System.Windows.Forms.ToolBarButton
        Me.tblFind = New System.Windows.Forms.ToolBarButton
        Me.tblLine5 = New System.Windows.Forms.ToolBarButton
        Me.tblHelp = New System.Windows.Forms.ToolBarButton
        Me.tblExit = New System.Windows.Forms.ToolBarButton
        Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
        Me.Label8 = New System.Windows.Forms.Label
        Me.txtSex = New System.Windows.Forms.TextBox
        Me.Label9 = New System.Windows.Forms.Label
        Me.txtCompany = New System.Windows.Forms.TextBox
        Me.Sta = New System.Windows.Forms.StatusBar
        Me.Sta1 = New System.Windows.Forms.StatusBarPanel
        Me.Sta2 = New System.Windows.Forms.StatusBarPanel
        Me.Sta3 = New System.Windows.Forms.StatusBarPanel
        Me.txtQQ = New System.Windows.Forms.TextBox
        Me.Label10 = New System.Windows.Forms.Label
        CType(Me.Sta1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Sta2, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Sta3, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'ListBox1
        '
        Me.ListBox1.Font = New System.Drawing.Font("宋体", 10.0!)
        Me.ListBox1.Location = New System.Drawing.Point(0, 32)
        Me.ListBox1.Name = "ListBox1"
        Me.ListBox1.Size = New System.Drawing.Size(384, 121)
        Me.ListBox1.TabIndex = 0
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(8, 160)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(32, 16)
        Me.Label1.TabIndex = 1
        Me.Label1.Text = "姓名"
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(8, 240)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(80, 16)
        Me.Label2.TabIndex = 2
        Me.Label2.Text = "联系电话"
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(8, 312)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(48, 16)
        Me.Label3.TabIndex = 3
        Me.Label3.Text = "地址"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(184, 160)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(48, 16)
        Me.Label4.TabIndex = 4
        Me.Label4.Text = "年龄"
        '
        'txtName
        '
        Me.txtName.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txtName.Location = New System.Drawing.Point(64, 160)
        Me.txtName.Name = "txtName"
        Me.txtName.Size = New System.Drawing.Size(112, 21)
        Me.txtName.TabIndex = 5
        Me.txtName.Text = "TextBox1"
        '
        'txtTel
        '
        Me.txtTel.Location = New System.Drawing.Point(64, 240)
        Me.txtTel.MaxLength = 12
        Me.txtTel.Name = "txtTel"
        Me.txtTel.Size = New System.Drawing.Size(320, 21)
        Me.txtTel.TabIndex = 6
        Me.txtTel.Text = "TextBox2"
        '
        'txtaddress
        '
        Me.txtaddress.Location = New System.Drawing.Point(64, 312)
        Me.txtaddress.Name = "txtaddress"
        Me.txtaddress.Size = New System.Drawing.Size(320, 21)
        Me.txtaddress.TabIndex = 7
        Me.txtaddress.Text = "TextBox3"
        '
        'txtage
        '
        Me.txtage.Location = New System.Drawing.Point(216, 160)
        Me.txtage.MaxLength = 3
        Me.txtage.Name = "txtage"
        Me.txtage.Size = New System.Drawing.Size(72, 21)
        Me.txtage.TabIndex = 8
        Me.txtage.Text = "TextBox4"
        '
        'txtbirthday
        '
        Me.txtbirthday.Location = New System.Drawing.Point(64, 184)
        Me.txtbirthday.Name = "txtbirthday"
        Me.txtbirthday.Size = New System.Drawing.Size(112, 21)
        Me.txtbirthday.TabIndex = 9
        Me.txtbirthday.Text = "TextBox5"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(8, 184)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(40, 16)
        Me.Label5.TabIndex = 10
        Me.Label5.Text = "生日"
        '
        'btnClear
        '
        Me.btnClear.Location = New System.Drawing.Point(80, 384)
        Me.btnClear.Name = "btnClear"
        Me.btnClear.Size = New System.Drawing.Size(64, 24)
        Me.btnClear.TabIndex = 11
        Me.btnClear.Text = "重置(&C)"
        '
        'btnAdd
        '

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -