Click here to Skip to main content
15,886,833 members
Articles / Desktop Programming / Windows Forms

Vista Style Address Bar for .NET 2.0/WinForms

Rate me:
Please Sign up or sign in to vote.
4.77/5 (12 votes)
10 Apr 2010CPOL2 min read 71.1K   2.4K   83  
WinForms version of the Vista style address bar that can be extended to support more than just browsing the file system.
namespace AddressBarExt.Controls
{
    partial class AddressBarExt
    {
        /// <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 Component 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()
        {
            this.ts_bar = new System.Windows.Forms.ToolStrip();
            this.SuspendLayout();
            // 
            // ts_bar
            // 
            this.ts_bar.AutoSize = false;
            this.ts_bar.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.ts_bar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.ts_bar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.ts_bar.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.ts_bar.Location = new System.Drawing.Point(0, 0);
            this.ts_bar.Name = "ts_bar";
            this.ts_bar.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.ts_bar.ShowItemToolTips = false;
            this.ts_bar.Size = new System.Drawing.Size(529, 25);
            this.ts_bar.Stretch = true;
            this.ts_bar.TabIndex = 0;
            this.ts_bar.Text = "AddressBarExt";
            // 
            // AddressBarExt
            // 
            this.BackColor = System.Drawing.Color.White;
            this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.Controls.Add(this.ts_bar);
            this.MinimumSize = new System.Drawing.Size(331, 23);
            this.Name = "AddressBarExt";
            this.Size = new System.Drawing.Size(529, 22);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.ToolStrip ts_bar;
    }
}

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)



Comments and Discussions