Click here to Skip to main content
15,895,667 members
Articles / Programming Languages / C#

Outlook Type Address Book in C#, LINQ, XML with Menu and ToolBar

Rate me:
Please Sign up or sign in to vote.
4.70/5 (8 votes)
28 Aug 2009CPOL4 min read 41K   1.6K   31  
Outlook type Address Book in C#, LINQ, XML with Menu and ToolBar
namespace AddressBook
{
    partial class AddressBookForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddressBookForm));
            this._dgAddressBook = new System.Windows.Forms.ListView();
            this._chFName = new System.Windows.Forms.ColumnHeader();
            this._chLName = new System.Windows.Forms.ColumnHeader();
            this._chPhone1 = new System.Windows.Forms.ColumnHeader();
            this._chPhone2 = new System.Windows.Forms.ColumnHeader();
            this._chAddress1 = new System.Windows.Forms.ColumnHeader();
            this._chAddress2 = new System.Windows.Forms.ColumnHeader();
            this._chCity = new System.Windows.Forms.ColumnHeader();
            this._chState = new System.Windows.Forms.ColumnHeader();
            this._chZip = new System.Windows.Forms.ColumnHeader();
            this._chCountry = new System.Windows.Forms.ColumnHeader();
            this._chEmail = new System.Windows.Forms.ColumnHeader();
            this.btnAdd = new System.Windows.Forms.Button();
            this.grbToolbar = new System.Windows.Forms.GroupBox();
            this.btnDelete = new System.Windows.Forms.Button();
            this.label1 = new System.Windows.Forms.Label();
            this.txtSearch = new System.Windows.Forms.TextBox();
            this.grbToolbar.SuspendLayout();
            this.SuspendLayout();
            // 
            // _dgAddressBook
            // 
            this._dgAddressBook.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this._chFName,
            this._chLName,
            this._chPhone1,
            this._chPhone2,
            this._chAddress1,
            this._chAddress2,
            this._chCity,
            this._chState,
            this._chZip,
            this._chCountry,
            this._chEmail});
            this._dgAddressBook.FullRowSelect = true;
            this._dgAddressBook.Location = new System.Drawing.Point(2, 113);
            this._dgAddressBook.MultiSelect = false;
            this._dgAddressBook.Name = "_dgAddressBook";
            this._dgAddressBook.Size = new System.Drawing.Size(694, 201);
            this._dgAddressBook.TabIndex = 0;
            this._dgAddressBook.UseCompatibleStateImageBehavior = false;
            this._dgAddressBook.View = System.Windows.Forms.View.Details;
            this._dgAddressBook.DoubleClick += new System.EventHandler(this._dgAddressBook_DoubleClick);
            // 
            // _chFName
            // 
            this._chFName.Text = "First Name";
            this._chFName.Width = 189;
            // 
            // _chLName
            // 
            this._chLName.Text = "Last Name";
            this._chLName.Width = 189;
            // 
            // _chPhone1
            // 
            this._chPhone1.Text = "Primary Phone";
            this._chPhone1.Width = 189;
            // 
            // _chPhone2
            // 
            this._chPhone2.Text = "Secondary Phone";
            this._chPhone2.Width = 189;
            // 
            // _chAddress1
            // 
            this._chAddress1.Text = "Address 1";
            this._chAddress1.Width = 189;
            // 
            // _chAddress2
            // 
            this._chAddress2.Text = "Address 2";
            this._chAddress2.Width = 189;
            // 
            // _chCity
            // 
            this._chCity.Text = "City";
            this._chCity.Width = 189;
            // 
            // _chState
            // 
            this._chState.Text = "State";
            this._chState.Width = 189;
            // 
            // _chZip
            // 
            this._chZip.Text = "Zip";
            this._chZip.Width = 189;
            // 
            // _chCountry
            // 
            this._chCountry.Text = "Country";
            this._chCountry.Width = 189;
            // 
            // _chEmail
            // 
            this._chEmail.Text = "Email";
            this._chEmail.Width = 189;
            // 
            // btnAdd
            // 
            this.btnAdd.Location = new System.Drawing.Point(6, 7);
            this.btnAdd.Name = "btnAdd";
            this.btnAdd.Size = new System.Drawing.Size(23, 23);
            this.btnAdd.TabIndex = 1;
            this.btnAdd.Text = "&+";
            this.btnAdd.UseVisualStyleBackColor = false;
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
            // 
            // grbToolbar
            // 
            this.grbToolbar.Controls.Add(this.btnDelete);
            this.grbToolbar.Controls.Add(this.btnAdd);
            this.grbToolbar.Location = new System.Drawing.Point(2, 3);
            this.grbToolbar.Name = "grbToolbar";
            this.grbToolbar.Size = new System.Drawing.Size(707, 36);
            this.grbToolbar.TabIndex = 2;
            this.grbToolbar.TabStop = false;
            // 
            // btnDelete
            // 
            this.btnDelete.Location = new System.Drawing.Point(29, 7);
            this.btnDelete.Name = "btnDelete";
            this.btnDelete.Size = new System.Drawing.Size(28, 23);
            this.btnDelete.TabIndex = 2;
            this.btnDelete.Text = "&--";
            this.btnDelete.UseVisualStyleBackColor = false;
            this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(2, 46);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(152, 13);
            this.label1.TabIndex = 3;
            this.label1.Text = "Type Name or Select from List:";
            // 
            // txtSearch
            // 
            this.txtSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtSearch.Location = new System.Drawing.Point(2, 63);
            this.txtSearch.Name = "txtSearch";
            this.txtSearch.Size = new System.Drawing.Size(152, 20);
            this.txtSearch.TabIndex = 4;
            this.txtSearch.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSearch_KeyPress);
            // 
            // AddressBookForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(708, 326);
            this.Controls.Add(this.txtSearch);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.grbToolbar);
            this.Controls.Add(this._dgAddressBook);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "AddressBookForm";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Address Book";
            this.Load += new System.EventHandler(this.AddressBookForm_Load);
            this.grbToolbar.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.ListView _dgAddressBook;
        private System.Windows.Forms.ColumnHeader _chFName;
        private System.Windows.Forms.ColumnHeader _chLName;
        private System.Windows.Forms.ColumnHeader _chAddress1;
        private System.Windows.Forms.ColumnHeader _chAddress2;
        private System.Windows.Forms.ColumnHeader _chEmail;
        private System.Windows.Forms.ColumnHeader _chCity;
        private System.Windows.Forms.ColumnHeader _chState;
        private System.Windows.Forms.ColumnHeader _chZip;
        private System.Windows.Forms.ColumnHeader _chPhone1;
        private System.Windows.Forms.ColumnHeader _chPhone2;
        private System.Windows.Forms.ColumnHeader _chCountry;
        private System.Windows.Forms.Button btnAdd;
        private System.Windows.Forms.GroupBox grbToolbar;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txtSearch;
        private System.Windows.Forms.Button btnDelete;

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Shell Oil
United States United States
I am working as a Senior Software Developer with Shell Oil,Houston Texas USA.

Comments and Discussions