Click here to Skip to main content
15,885,875 members
Articles / Desktop Programming / Win32

.NET Shell Extensions - Shell Drop Handlers

Rate me:
Please Sign up or sign in to vote.
5.00/5 (15 votes)
19 Jan 2013CPOL7 min read 53.9K   2.1K   35  
Rapidly create Shell Drop Handler Extensions using .NET
namespace ServerManager.TestShell
{
    partial class TestShellForm
    {
        /// <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(TestShellForm));
            this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
            this.statusStrip1 = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabelAttributes = new System.Windows.Forms.ToolStripStatusLabel();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.shellTreeView = new Apex.WinForms.Controls.ShellTreeView();
            this.shellListView = new Apex.WinForms.Controls.ShellListView();
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.toolStripSplitButtonChangeYourView = new System.Windows.Forms.ToolStripSplitButton();
            this.largeIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItemSmallIcons = new System.Windows.Forms.ToolStripMenuItem();
            this.listToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.detailsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButtonShowProperties = new System.Windows.Forms.ToolStripButton();
            this.toolStripButtonShellOpenDialog = new System.Windows.Forms.ToolStripButton();
            this.toolStripContainer1.BottomToolStripPanel.SuspendLayout();
            this.toolStripContainer1.ContentPanel.SuspendLayout();
            this.toolStripContainer1.TopToolStripPanel.SuspendLayout();
            this.toolStripContainer1.SuspendLayout();
            this.statusStrip1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // toolStripContainer1
            // 
            // 
            // toolStripContainer1.BottomToolStripPanel
            // 
            this.toolStripContainer1.BottomToolStripPanel.Controls.Add(this.statusStrip1);
            // 
            // toolStripContainer1.ContentPanel
            // 
            this.toolStripContainer1.ContentPanel.Controls.Add(this.splitContainer1);
            this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(714, 323);
            this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.toolStripContainer1.Location = new System.Drawing.Point(0, 0);
            this.toolStripContainer1.Name = "toolStripContainer1";
            this.toolStripContainer1.Size = new System.Drawing.Size(714, 370);
            this.toolStripContainer1.TabIndex = 0;
            this.toolStripContainer1.Text = "toolStripContainer1";
            // 
            // toolStripContainer1.TopToolStripPanel
            // 
            this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1);
            // 
            // statusStrip1
            // 
            this.statusStrip1.Dock = System.Windows.Forms.DockStyle.None;
            this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripStatusLabelAttributes});
            this.statusStrip1.Location = new System.Drawing.Point(0, 0);
            this.statusStrip1.Name = "statusStrip1";
            this.statusStrip1.Size = new System.Drawing.Size(714, 22);
            this.statusStrip1.TabIndex = 0;
            // 
            // toolStripStatusLabelAttributes
            // 
            this.toolStripStatusLabelAttributes.Name = "toolStripStatusLabelAttributes";
            this.toolStripStatusLabelAttributes.Size = new System.Drawing.Size(65, 17);
            this.toolStripStatusLabelAttributes.Text = "Attributes: ";
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.shellTreeView);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.shellListView);
            this.splitContainer1.Size = new System.Drawing.Size(714, 323);
            this.splitContainer1.SplitterDistance = 238;
            this.splitContainer1.TabIndex = 0;
            // 
            // shellTreeView
            // 
            this.shellTreeView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.shellTreeView.HideSelection = false;
            this.shellTreeView.Location = new System.Drawing.Point(0, 0);
            this.shellTreeView.Name = "shellTreeView";
            this.shellTreeView.ShowFiles = false;
            this.shellTreeView.ShowHiddenFilesAndFolders = false;
            this.shellTreeView.Size = new System.Drawing.Size(238, 323);
            this.shellTreeView.TabIndex = 0;
            this.shellTreeView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.shellTreeView1_MouseUp);
            // 
            // shellListView
            // 
            this.shellListView.AssociationTreeView = this.shellTreeView;
            this.shellListView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.shellListView.Location = new System.Drawing.Point(0, 0);
            this.shellListView.Name = "shellListView";
            this.shellListView.ShowFolders = true;
            this.shellListView.ShowHiddenFilesAndFolders = false;
            this.shellListView.ShowItemToolTips = true;
            this.shellListView.Size = new System.Drawing.Size(472, 323);
            this.shellListView.TabIndex = 0;
            this.shellListView.UseCompatibleStateImageBehavior = false;
            this.shellListView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.shellListView_ItemDrag);
            this.shellListView.SelectedIndexChanged += new System.EventHandler(this.shellListView_SelectedIndexChanged);
            this.shellListView.DragDrop += new System.Windows.Forms.DragEventHandler(this.shellListView_DragDrop);
            this.shellListView.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.shellListView_GiveFeedback);
            this.shellListView.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.shellListView_QueryContinueDrag);
            this.shellListView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.shellListView1_MouseUp);
            // 
            // toolStrip1
            // 
            this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripSplitButtonChangeYourView,
            this.toolStripSeparator1,
            this.toolStripButtonShowProperties,
            this.toolStripButtonShellOpenDialog});
            this.toolStrip1.Location = new System.Drawing.Point(3, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(127, 25);
            this.toolStrip1.TabIndex = 0;
            // 
            // toolStripSplitButtonChangeYourView
            // 
            this.toolStripSplitButtonChangeYourView.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripSplitButtonChangeYourView.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.largeIconsToolStripMenuItem,
            this.toolStripMenuItemSmallIcons,
            this.listToolStripMenuItem,
            this.detailsToolStripMenuItem,
            this.tileToolStripMenuItem});
            this.toolStripSplitButtonChangeYourView.Image = global::ServerManager.Properties.Resources.View_LargeIcons;
            this.toolStripSplitButtonChangeYourView.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripSplitButtonChangeYourView.Name = "toolStripSplitButtonChangeYourView";
            this.toolStripSplitButtonChangeYourView.Size = new System.Drawing.Size(32, 22);
            this.toolStripSplitButtonChangeYourView.Text = "Change Your View";
            this.toolStripSplitButtonChangeYourView.ToolTipText = "Change Your View";
            this.toolStripSplitButtonChangeYourView.ButtonClick += new System.EventHandler(this.toolStripSplitButtonChangeYourView_ButtonClick);
            // 
            // largeIconsToolStripMenuItem
            // 
            this.largeIconsToolStripMenuItem.Image = global::ServerManager.Properties.Resources.View_LargeIcons;
            this.largeIconsToolStripMenuItem.Name = "largeIconsToolStripMenuItem";
            this.largeIconsToolStripMenuItem.Size = new System.Drawing.Size(134, 22);
            this.largeIconsToolStripMenuItem.Text = "Large Icons";
            this.largeIconsToolStripMenuItem.Click += new System.EventHandler(this.largeIconsToolStripMenuItem_Click);
            // 
            // toolStripMenuItemSmallIcons
            // 
            this.toolStripMenuItemSmallIcons.Image = global::ServerManager.Properties.Resources.View_SmallIcons;
            this.toolStripMenuItemSmallIcons.Name = "toolStripMenuItemSmallIcons";
            this.toolStripMenuItemSmallIcons.Size = new System.Drawing.Size(134, 22);
            this.toolStripMenuItemSmallIcons.Text = "Small Icons";
            this.toolStripMenuItemSmallIcons.ToolTipText = "Small Icons";
            this.toolStripMenuItemSmallIcons.Click += new System.EventHandler(this.toolStripMenuItemSmallIcons_Click);
            // 
            // listToolStripMenuItem
            // 
            this.listToolStripMenuItem.Image = global::ServerManager.Properties.Resources.View_List;
            this.listToolStripMenuItem.Name = "listToolStripMenuItem";
            this.listToolStripMenuItem.Size = new System.Drawing.Size(134, 22);
            this.listToolStripMenuItem.Text = "List";
            this.listToolStripMenuItem.Click += new System.EventHandler(this.listToolStripMenuItem_Click);
            // 
            // detailsToolStripMenuItem
            // 
            this.detailsToolStripMenuItem.Image = global::ServerManager.Properties.Resources.View_Details;
            this.detailsToolStripMenuItem.Name = "detailsToolStripMenuItem";
            this.detailsToolStripMenuItem.Size = new System.Drawing.Size(134, 22);
            this.detailsToolStripMenuItem.Text = "Details";
            this.detailsToolStripMenuItem.Click += new System.EventHandler(this.detailsToolStripMenuItem_Click);
            // 
            // tileToolStripMenuItem
            // 
            this.tileToolStripMenuItem.Image = global::ServerManager.Properties.Resources.View_Tiles;
            this.tileToolStripMenuItem.Name = "tileToolStripMenuItem";
            this.tileToolStripMenuItem.Size = new System.Drawing.Size(134, 22);
            this.tileToolStripMenuItem.Text = "Tile";
            this.tileToolStripMenuItem.Click += new System.EventHandler(this.tileToolStripMenuItem_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            // 
            // toolStripButtonShowProperties
            // 
            this.toolStripButtonShowProperties.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonShowProperties.Image = global::ServerManager.Properties.Resources.PropertySheet;
            this.toolStripButtonShowProperties.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonShowProperties.Name = "toolStripButtonShowProperties";
            this.toolStripButtonShowProperties.Size = new System.Drawing.Size(23, 22);
            this.toolStripButtonShowProperties.Text = "Show Properties";
            this.toolStripButtonShowProperties.Click += new System.EventHandler(this.toolStripButtonShowProperties_Click);
            // 
            // toolStripButtonShellOpenDialog
            // 
            this.toolStripButtonShellOpenDialog.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonShellOpenDialog.Image = global::ServerManager.Properties.Resources.openHS;
            this.toolStripButtonShellOpenDialog.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonShellOpenDialog.Name = "toolStripButtonShellOpenDialog";
            this.toolStripButtonShellOpenDialog.Size = new System.Drawing.Size(23, 22);
            this.toolStripButtonShellOpenDialog.Text = "Shell Open Dialog";
            this.toolStripButtonShellOpenDialog.Click += new System.EventHandler(this.toolStripButtonShellOpenDialog_Click);
            // 
            // TestShellForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(714, 370);
            this.Controls.Add(this.toolStripContainer1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "TestShellForm";
            this.Text = "Test Shell";
            this.toolStripContainer1.BottomToolStripPanel.ResumeLayout(false);
            this.toolStripContainer1.BottomToolStripPanel.PerformLayout();
            this.toolStripContainer1.ContentPanel.ResumeLayout(false);
            this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false);
            this.toolStripContainer1.TopToolStripPanel.PerformLayout();
            this.toolStripContainer1.ResumeLayout(false);
            this.toolStripContainer1.PerformLayout();
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
            this.splitContainer1.ResumeLayout(false);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.ToolStripContainer toolStripContainer1;
        private System.Windows.Forms.SplitContainer splitContainer1;
        private Apex.WinForms.Controls.ShellTreeView shellTreeView;
        private Apex.WinForms.Controls.ShellListView shellListView;
        private System.Windows.Forms.StatusStrip statusStrip1;
        private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelAttributes;
        private System.Windows.Forms.ToolStrip toolStrip1;
        private System.Windows.Forms.ToolStripSplitButton toolStripSplitButtonChangeYourView;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSmallIcons;
        private System.Windows.Forms.ToolStripMenuItem largeIconsToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem detailsToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem tileToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem listToolStripMenuItem;
        private System.Windows.Forms.ToolStripButton toolStripButtonShowProperties;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripButton toolStripButtonShellOpenDialog;
    }
}

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
United Kingdom United Kingdom
Follow my blog at www.dwmkerr.com and find out about my charity at www.childrenshomesnepal.org.

Comments and Discussions