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

Clipz - A Friendly Introduction to the Windows 7 Taskbar Features

Rate me:
Please Sign up or sign in to vote.
4.91/5 (57 votes)
17 Dec 2009CPOL9 min read 71.8K   1.6K   123  
An overview of the Windows 7 taskbar features, and how to use then in your own applications.
namespace Clipz
{
    partial class Form1
    {
        /// <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()
        {
            this.components = new System.ComponentModel.Container();
            this.PreviewImageBox = new System.Windows.Forms.PictureBox();
            this.FlowPanel = new System.Windows.Forms.FlowLayoutPanel();
            this._trayIcon = new System.Windows.Forms.NotifyIcon(this.components);
            this._trayContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.usePagedPreviewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            ((System.ComponentModel.ISupportInitialize)(this.PreviewImageBox)).BeginInit();
            this._trayContextMenu.SuspendLayout();
            this.SuspendLayout();
            // 
            // PreviewImageBox
            // 
            this.PreviewImageBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.PreviewImageBox.Location = new System.Drawing.Point(630, 0);
            this.PreviewImageBox.Name = "PreviewImageBox";
            this.PreviewImageBox.Size = new System.Drawing.Size(150, 150);
            this.PreviewImageBox.TabIndex = 0;
            this.PreviewImageBox.TabStop = false;
            // 
            // FlowPanel
            // 
            this.FlowPanel.Location = new System.Drawing.Point(0, 0);
            this.FlowPanel.Name = "FlowPanel";
            this.FlowPanel.Size = new System.Drawing.Size(630, 630);
            this.FlowPanel.TabIndex = 2;
            // 
            // _trayIcon
            // 
            this._trayIcon.ContextMenuStrip = this._trayContextMenu;
            this._trayIcon.Visible = true;
            // 
            // _trayContextMenu
            // 
            this._trayContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.usePagedPreviewToolStripMenuItem,
            this.clearToolStripMenuItem,
            this.toolStripSeparator1,
            this.exitToolStripMenuItem});
            this._trayContextMenu.Name = "_trayContextMenu";
            this._trayContextMenu.Size = new System.Drawing.Size(197, 98);
            // 
            // usePagedPreviewToolStripMenuItem
            // 
            this.usePagedPreviewToolStripMenuItem.Name = "usePagedPreviewToolStripMenuItem";
            this.usePagedPreviewToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
            this.usePagedPreviewToolStripMenuItem.Text = "Switch to Auto Preview";
            this.usePagedPreviewToolStripMenuItem.Click += new System.EventHandler(this.usePagedPreviewToolStripMenuItem_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(193, 6);
            // 
            // exitToolStripMenuItem
            // 
            this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
            this.exitToolStripMenuItem.Text = "Exit";
            this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
            // 
            // clearToolStripMenuItem
            // 
            this.clearToolStripMenuItem.Name = "clearToolStripMenuItem";
            this.clearToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
            this.clearToolStripMenuItem.Text = "Clear Contents";
            this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click);
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(832, 639);
            this.Controls.Add(this.FlowPanel);
            this.Controls.Add(this.PreviewImageBox);
            this.Name = "Form1";
            this.Text = "Clipz";
            this.Shown += new System.EventHandler(this.Form1_Shown);
            ((System.ComponentModel.ISupportInitialize)(this.PreviewImageBox)).EndInit();
            this._trayContextMenu.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.PictureBox PreviewImageBox;
        private System.Windows.Forms.FlowLayoutPanel FlowPanel;
        private System.Windows.Forms.NotifyIcon _trayIcon;
        private System.Windows.Forms.ContextMenuStrip _trayContextMenu;
        private System.Windows.Forms.ToolStripMenuItem usePagedPreviewToolStripMenuItem;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem clearToolStripMenuItem;
    }
}

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
Web Developer PageLabs
United States United States
I'm the founder of PageLabs, a web-based performance and SEO optimization site.

Give your site a boost in performance, even take a free speed test!

http://www.pagelabs.com

Comments and Discussions