📄 contactsform.vb
字号:
Option Strict On
Imports System.IO
Imports System.runtime.Serialization
Imports System.runtime.Serialization.Formatters.Binary
Public Class Form1
Inherits System.Windows.Forms.Form
#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
Friend WithEvents txtCompany As System.Windows.Forms.TextBox
Friend WithEvents txtContact As System.Windows.Forms.TextBox
Friend WithEvents txtAddress1 As System.Windows.Forms.TextBox
Friend WithEvents txtAddress2 As System.Windows.Forms.TextBox
Friend WithEvents txtCity As System.Windows.Forms.TextBox
Friend WithEvents txtState As System.Windows.Forms.TextBox
Friend WithEvents txtZIP As System.Windows.Forms.TextBox
Friend WithEvents txtTel As System.Windows.Forms.TextBox
Friend WithEvents txtEMail As System.Windows.Forms.TextBox
Friend WithEvents txtURL As System.Windows.Forms.TextBox
Friend WithEvents bttnAdd As System.Windows.Forms.Button
Friend WithEvents bttnDelete As System.Windows.Forms.Button
Friend WithEvents bttnOK As System.Windows.Forms.Button
Friend WithEvents bttnCancel As System.Windows.Forms.Button
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 Label8 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents bttnEdit As System.Windows.Forms.Button
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
Friend WithEvents MenuItem6 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem7 As System.Windows.Forms.MenuItem
Friend WithEvents FileMenu As System.Windows.Forms.MenuItem
Friend WithEvents FileNew As System.Windows.Forms.MenuItem
Friend WithEvents MenuItemfileLoad As System.Windows.Forms.MenuItem
Friend WithEvents FileSave As System.Windows.Forms.MenuItem
Friend WithEvents FileExit As System.Windows.Forms.MenuItem
Friend WithEvents ListBox1 As System.Windows.Forms.ListBox
'Required by the Windows Form Designer
Private components As System.ComponentModel.Container
'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.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.MenuItemfileLoad = New System.Windows.Forms.MenuItem()
Me.FileNew = New System.Windows.Forms.MenuItem()
Me.txtCompany = New System.Windows.Forms.TextBox()
Me.txtTel = New System.Windows.Forms.TextBox()
Me.FileSave = New System.Windows.Forms.MenuItem()
Me.MainMenu1 = New System.Windows.Forms.MainMenu()
Me.FileMenu = New System.Windows.Forms.MenuItem()
Me.MenuItem6 = New System.Windows.Forms.MenuItem()
Me.MenuItem7 = New System.Windows.Forms.MenuItem()
Me.FileExit = New System.Windows.Forms.MenuItem()
Me.txtEMail = New System.Windows.Forms.TextBox()
Me.txtZIP = New System.Windows.Forms.TextBox()
Me.Label10 = New System.Windows.Forms.Label()
Me.txtCity = New System.Windows.Forms.TextBox()
Me.txtState = New System.Windows.Forms.TextBox()
Me.Label9 = New System.Windows.Forms.Label()
Me.Label4 = New System.Windows.Forms.Label()
Me.Label5 = New System.Windows.Forms.Label()
Me.Label6 = New System.Windows.Forms.Label()
Me.Label7 = New System.Windows.Forms.Label()
Me.Label1 = New System.Windows.Forms.Label()
Me.Label2 = New System.Windows.Forms.Label()
Me.Label3 = New System.Windows.Forms.Label()
Me.bttnDelete = New System.Windows.Forms.Button()
Me.txtContact = New System.Windows.Forms.TextBox()
Me.Label8 = New System.Windows.Forms.Label()
Me.txtAddress1 = New System.Windows.Forms.TextBox()
Me.txtAddress2 = New System.Windows.Forms.TextBox()
Me.bttnEdit = New System.Windows.Forms.Button()
Me.bttnOK = New System.Windows.Forms.Button()
Me.bttnAdd = New System.Windows.Forms.Button()
Me.ListBox1 = New System.Windows.Forms.ListBox()
Me.bttnCancel = New System.Windows.Forms.Button()
Me.txtURL = New System.Windows.Forms.TextBox()
Me.SuspendLayout()
'
'MenuItemfileLoad
'
Me.MenuItemfileLoad.Index = 2
Me.MenuItemfileLoad.Text = "Load Collection"
'
'FileNew
'
Me.FileNew.Index = 0
Me.FileNew.Text = "New collection"
'
'txtCompany
'
Me.txtCompany.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtCompany.Location = New System.Drawing.Point(304, 24)
Me.txtCompany.Name = "txtCompany"
Me.txtCompany.Size = New System.Drawing.Size(320, 22)
Me.txtCompany.TabIndex = 1
Me.txtCompany.Text = ""
'
'txtTel
'
Me.txtTel.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtTel.Location = New System.Drawing.Point(304, 248)
Me.txtTel.Name = "txtTel"
Me.txtTel.Size = New System.Drawing.Size(120, 22)
Me.txtTel.TabIndex = 15
Me.txtTel.Text = ""
'
'FileSave
'
Me.FileSave.Index = 3
Me.FileSave.Text = "Save Collection"
'
'MainMenu1
'
Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.FileMenu})
'
'FileMenu
'
Me.FileMenu.Index = 0
Me.FileMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.FileNew, Me.MenuItem6, Me.MenuItemfileLoad, Me.FileSave, Me.MenuItem7, Me.FileExit})
Me.FileMenu.Text = "File"
'
'MenuItem6
'
Me.MenuItem6.Index = 1
Me.MenuItem6.Text = "-"
'
'MenuItem7
'
Me.MenuItem7.Index = 4
Me.MenuItem7.Text = "-"
'
'FileExit
'
Me.FileExit.Index = 5
Me.FileExit.Text = "Exit"
'
'txtEMail
'
Me.txtEMail.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtEMail.Location = New System.Drawing.Point(464, 248)
Me.txtEMail.Name = "txtEMail"
Me.txtEMail.Size = New System.Drawing.Size(184, 22)
Me.txtEMail.TabIndex = 17
Me.txtEMail.Text = ""
'
'txtZIP
'
Me.txtZIP.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtZIP.Location = New System.Drawing.Point(568, 200)
Me.txtZIP.Name = "txtZIP"
Me.txtZIP.Size = New System.Drawing.Size(56, 22)
Me.txtZIP.TabIndex = 13
Me.txtZIP.Text = ""
'
'Label10
'
Me.Label10.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label10.Location = New System.Drawing.Point(568, 184)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(32, 16)
Me.Label10.TabIndex = 12
Me.Label10.Text = "ZIP"
'
'txtCity
'
Me.txtCity.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtCity.Location = New System.Drawing.Point(304, 200)
Me.txtCity.Name = "txtCity"
Me.txtCity.TabIndex = 9
Me.txtCity.Text = ""
'
'txtState
'
Me.txtState.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtState.Location = New System.Drawing.Point(480, 200)
Me.txtState.Name = "txtState"
Me.txtState.Size = New System.Drawing.Size(40, 22)
Me.txtState.TabIndex = 11
Me.txtState.Text = ""
'
'Label9
'
Me.Label9.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label9.Location = New System.Drawing.Point(480, 184)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(40, 16)
Me.Label9.TabIndex = 10
Me.Label9.Text = "State"
'
'Label4
'
Me.Label4.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label4.Location = New System.Drawing.Point(304, 136)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(72, 16)
Me.Label4.TabIndex = 6
Me.Label4.Text = "Address2"
'
'Label5
'
Me.Label5.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label5.Location = New System.Drawing.Point(304, 184)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(72, 16)
Me.Label5.TabIndex = 8
Me.Label5.Text = "City"
'
'Label6
'
Me.Label6.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label6.Location = New System.Drawing.Point(304, 232)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(72, 16)
Me.Label6.TabIndex = 14
Me.Label6.Text = "Telephone"
'
'Label7
'
Me.Label7.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label7.Location = New System.Drawing.Point(464, 232)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(72, 16)
Me.Label7.TabIndex = 16
Me.Label7.Text = "&EMail"
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label1.Location = New System.Drawing.Point(304, 0)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(72, 16)
Me.Label1.TabIndex = 0
Me.Label1.Text = "&Company"
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label2.Location = New System.Drawing.Point(304, 56)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(72, 16)
Me.Label2.TabIndex = 2
Me.Label2.Text = "Contact"
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label3.Location = New System.Drawing.Point(304, 96)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(72, 16)
Me.Label3.TabIndex = 4
Me.Label3.Text = "Address1"
'
'bttnDelete
'
Me.bttnDelete.Font = New System.Drawing.Font("Verdana", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.bttnDelete.Location = New System.Drawing.Point(568, 336)
Me.bttnDelete.Name = "bttnDelete"
Me.bttnDelete.Size = New System.Drawing.Size(96, 32)
Me.bttnDelete.TabIndex = 22
Me.bttnDelete.Text = "Delete"
'
'txtContact
'
Me.txtContact.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtContact.Location = New System.Drawing.Point(304, 72)
Me.txtContact.Name = "txtContact"
Me.txtContact.Size = New System.Drawing.Size(264, 22)
Me.txtContact.TabIndex = 3
Me.txtContact.Text = ""
'
'Label8
'
Me.Label8.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Label8.Location = New System.Drawing.Point(304, 280)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(72, 16)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -