コード例 #1
0
 /// <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.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.mnuIconListSaveAs = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuIconListProperties = new System.Windows.Forms.ToolStripMenuItem();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.iconList = new IconPack.IconListView();
     this.listView1 = new IconPack.IconListView();
     this.button6 = new System.Windows.Forms.Button();
     this.wnd_filename = new System.Windows.Forms.TextBox();
     this.label7 = new System.Windows.Forms.Label();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.button1 = new System.Windows.Forms.Button();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.contextMenuStrip1.SuspendLayout();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.imageList1.ImageSize = new System.Drawing.Size(32, 32);
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.mnuIconListSaveAs,
     this.toolStripMenuItem3,
     this.mnuIconListProperties});
     this.contextMenuStrip1.Name = "cntxtIconList";
     this.contextMenuStrip1.Size = new System.Drawing.Size(116, 54);
     this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.cntxtIconList_Opening);
     //
     // mnuIconListSaveAs
     //
     this.mnuIconListSaveAs.Name = "mnuIconListSaveAs";
     this.mnuIconListSaveAs.Size = new System.Drawing.Size(152, 22);
     this.mnuIconListSaveAs.Text = "&���...";
     this.mnuIconListSaveAs.Click += new System.EventHandler(this.mnuIconListSaveAs_Click);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new System.Drawing.Size(149, 6);
     //
     // mnuIconListProperties
     //
     this.mnuIconListProperties.Name = "mnuIconListProperties";
     this.mnuIconListProperties.Size = new System.Drawing.Size(152, 22);
     this.mnuIconListProperties.Text = "����(&P)";
     this.mnuIconListProperties.Click += new System.EventHandler(this.mnuIconListProperties_Click);
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.DefaultExt = "*.ico";
     this.saveFileDialog1.Filter = "Icon Files|*.ico";
     this.saveFileDialog1.Title = "���Ϊ";
     //
     // iconList
     //
     this.iconList.AllowDrop = true;
     this.iconList.ContextMenuStrip = this.contextMenuStrip1;
     this.iconList.Dock = System.Windows.Forms.DockStyle.Fill;
     this.iconList.Location = new System.Drawing.Point(0, 0);
     this.iconList.Name = "iconList";
     this.iconList.OwnerDraw = true;
     this.iconList.Size = new System.Drawing.Size(361, 342);
     this.iconList.TabIndex = 5;
     this.iconList.TileSize = new System.Drawing.Size(0, 0);
     this.iconList.UseCompatibleStateImageBehavior = false;
     this.iconList.View = System.Windows.Forms.View.Tile;
     //
     // listView1
     //
     this.listView1.Activation = System.Windows.Forms.ItemActivation.OneClick;
     this.listView1.AllowDrop = true;
     this.listView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listView1.HideSelection = false;
     this.listView1.LargeImageList = this.imageList1;
     this.listView1.Location = new System.Drawing.Point(0, 0);
     this.listView1.Name = "listView1";
     this.listView1.OwnerDraw = true;
     this.listView1.Size = new System.Drawing.Size(200, 342);
     this.listView1.SmallImageList = this.imageList1;
     this.listView1.TabIndex = 5;
     this.listView1.TileSize = new System.Drawing.Size(8, 8);
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.Tile;
     this.listView1.SelectedIndexChanged += new System.EventHandler(this.iconListView1_SelectedIndexChanged);
     this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
     //
     // button6
     //
     this.button6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button6.Location = new System.Drawing.Point(521, 10);
     this.button6.Name = "button6";
     this.button6.Size = new System.Drawing.Size(56, 23);
     this.button6.TabIndex = 8;
     this.button6.Text = "��λ(&P)";
     this.button6.UseVisualStyleBackColor = true;
     this.button6.Click += new System.EventHandler(this.button6_Click);
     //
     // wnd_filename
     //
     this.wnd_filename.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.wnd_filename.Location = new System.Drawing.Point(12, 39);
     this.wnd_filename.Name = "wnd_filename";
     this.wnd_filename.ReadOnly = true;
     this.wnd_filename.Size = new System.Drawing.Size(503, 21);
     this.wnd_filename.TabIndex = 7;
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(12, 21);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(83, 12);
     this.label7.TabIndex = 6;
     this.label7.Text = "ģ���ļ�·��:";
     //
     // splitContainer1
     //
     this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.splitContainer1.Cursor = System.Windows.Forms.Cursors.SizeWE;
     this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.Location = new System.Drawing.Point(12, 66);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.listView1);
     this.splitContainer1.Panel1.Cursor = System.Windows.Forms.Cursors.Arrow;
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.iconList);
     this.splitContainer1.Panel2.Cursor = System.Windows.Forms.Cursors.Default;
     this.splitContainer1.Size = new System.Drawing.Size(565, 342);
     this.splitContainer1.SplitterDistance = 200;
     this.splitContainer1.TabIndex = 9;
     //
     // button1
     //
     this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Location = new System.Drawing.Point(521, 38);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(56, 23);
     this.button1.TabIndex = 8;
     this.button1.Text = "���(&B)";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.Filter = "\"EXE (*.exe)|*.dll|All files (*.*)|*.*\";";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(582, 420);
     this.Controls.Add(this.splitContainer1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.button6);
     this.Controls.Add(this.wnd_filename);
     this.Controls.Add(this.label7);
     this.Name = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "ͼ����ȡ��";
     this.Load += new System.EventHandler(this.frmIconList_Load);
     this.contextMenuStrip1.ResumeLayout(false);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #2
0
 /// <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(IconPackForm));
     this.imageList1 = new System.Windows.Forms.ImageList();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip();
     this.mnuIconListSaveAs = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuIconListProperties = new System.Windows.Forms.ToolStripMenuItem();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.button6 = new System.Windows.Forms.Button();
     this.wnd_filename = new System.Windows.Forms.TextBox();
     this.label7 = new System.Windows.Forms.Label();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.button1 = new System.Windows.Forms.Button();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.pos1 = new System.Windows.Forms.Label();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.timer1 = new System.Windows.Forms.Timer();
     this.listView1 = new IconPack.IconListView();
     this.iconList = new IconPack.IconListView();
     this.contextMenuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.imageList1.ImageSize = new System.Drawing.Size(32, 32);
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.mnuIconListSaveAs,
     this.toolStripMenuItem3,
     this.mnuIconListProperties});
     this.contextMenuStrip1.Name = "cntxtIconList";
     this.contextMenuStrip1.Size = new System.Drawing.Size(116, 54);
     this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.cntxtIconList_Opening);
     //
     // mnuIconListSaveAs
     //
     this.mnuIconListSaveAs.Name = "mnuIconListSaveAs";
     this.mnuIconListSaveAs.Size = new System.Drawing.Size(115, 22);
     this.mnuIconListSaveAs.Text = "&���...";
     this.mnuIconListSaveAs.Click += new System.EventHandler(this.mnuIconListSaveAs_Click);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new System.Drawing.Size(112, 6);
     //
     // mnuIconListProperties
     //
     this.mnuIconListProperties.Name = "mnuIconListProperties";
     this.mnuIconListProperties.Size = new System.Drawing.Size(115, 22);
     this.mnuIconListProperties.Text = "����(&P)";
     this.mnuIconListProperties.Click += new System.EventHandler(this.mnuIconListProperties_Click);
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.DefaultExt = "*.ico";
     this.saveFileDialog1.Filter = "Icon Files|*.ico";
     this.saveFileDialog1.Title = "���Ϊ";
     //
     // button6
     //
     this.button6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button6.FlatAppearance.BorderSize = 0;
     this.button6.Location = new System.Drawing.Point(236, 7);
     this.button6.Name = "button6";
     this.button6.Size = new System.Drawing.Size(56, 23);
     this.button6.TabIndex = 8;
     this.button6.Text = "��λ(&P)";
     this.button6.UseVisualStyleBackColor = true;
     this.button6.Click += new System.EventHandler(this.button6_Click);
     //
     // wnd_filename
     //
     this.wnd_filename.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.wnd_filename.Location = new System.Drawing.Point(9, 33);
     this.wnd_filename.Name = "wnd_filename";
     this.wnd_filename.ReadOnly = true;
     this.wnd_filename.Size = new System.Drawing.Size(345, 21);
     this.wnd_filename.TabIndex = 7;
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(9, 18);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(83, 12);
     this.label7.TabIndex = 6;
     this.label7.Text = "ģ���ļ�·��:";
     //
     // splitContainer1
     //
     this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.splitContainer1.Cursor = System.Windows.Forms.Cursors.SizeNS;
     this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.Location = new System.Drawing.Point(9, 60);
     this.splitContainer1.Name = "splitContainer1";
     this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.listView1);
     this.splitContainer1.Panel1.Cursor = System.Windows.Forms.Cursors.Arrow;
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.iconList);
     this.splitContainer1.Panel2.Cursor = System.Windows.Forms.Cursors.Default;
     this.splitContainer1.Size = new System.Drawing.Size(401, 300);
     this.splitContainer1.SplitterDistance = 162;
     this.splitContainer1.TabIndex = 9;
     //
     // button1
     //
     this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.FlatAppearance.BorderSize = 0;
     this.button1.Location = new System.Drawing.Point(298, 7);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(56, 23);
     this.button1.TabIndex = 8;
     this.button1.Text = "���(&B)";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.Filter = "\"EXE (*.exe)|*.dll|All files (*.*)|*.*\";";
     //
     // pos1
     //
     this.pos1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pos1.AutoSize = true;
     this.pos1.Location = new System.Drawing.Point(360, 36);
     this.pos1.Name = "pos1";
     this.pos1.Size = new System.Drawing.Size(23, 12);
     this.pos1.TabIndex = 11;
     this.pos1.Text = "0,0";
     //
     // pictureBox1
     //
     this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(374, 6);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(31, 28);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox1.TabIndex = 10;
     this.pictureBox1.TabStop = false;
     this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDown);
     this.pictureBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseUp);
     //
     // timer1
     //
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // listView1
     //
     this.listView1.Activation = System.Windows.Forms.ItemActivation.OneClick;
     this.listView1.AllowDrop = true;
     this.listView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listView1.HideSelection = false;
     this.listView1.LargeImageList = this.imageList1;
     this.listView1.Location = new System.Drawing.Point(0, 0);
     this.listView1.Name = "listView1";
     this.listView1.OwnerDraw = true;
     this.listView1.Size = new System.Drawing.Size(401, 162);
     this.listView1.SmallImageList = this.imageList1;
     this.listView1.TabIndex = 5;
     this.listView1.TileSize = new System.Drawing.Size(8, 8);
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.Tile;
     this.listView1.SelectedIndexChanged += new System.EventHandler(this.iconListView1_SelectedIndexChanged);
     this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
     //
     // iconList
     //
     this.iconList.AllowDrop = true;
     this.iconList.ContextMenuStrip = this.contextMenuStrip1;
     this.iconList.Dock = System.Windows.Forms.DockStyle.Fill;
     this.iconList.Location = new System.Drawing.Point(0, 0);
     this.iconList.Name = "iconList";
     this.iconList.OwnerDraw = true;
     this.iconList.ShowItemToolTips = true;
     this.iconList.Size = new System.Drawing.Size(401, 134);
     this.iconList.TabIndex = 5;
     this.iconList.TileSize = new System.Drawing.Size(0, 0);
     this.iconList.UseCompatibleStateImageBehavior = false;
     this.iconList.View = System.Windows.Forms.View.Tile;
     //
     // IconPackForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(420, 372);
     this.Controls.Add(this.pos1);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.splitContainer1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.button6);
     this.Controls.Add(this.wnd_filename);
     this.Controls.Add(this.label7);
     this.Name = "IconPackForm";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "ͼ����ȡ��";
     this.Load += new System.EventHandler(this.IconPackForm_Load);
     this.Shown += new System.EventHandler(this.Form1_Shown);
     this.contextMenuStrip1.ResumeLayout(false);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }