当前位置: 首页>>代码示例>>C#>>正文


C# Forms.ListView类代码示例

本文整理汇总了C#中System.Windows.Forms.ListView的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Forms.ListView类的具体用法?C# System.Windows.Forms.ListView怎么用?C# System.Windows.Forms.ListView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


System.Windows.Forms.ListView类属于命名空间,在下文中一共展示了System.Windows.Forms.ListView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.listViewDetails = new System.Windows.Forms.ListView();
     this.SuspendLayout();
     //
     // listViewDetails
     //
     this.listViewDetails.CheckBoxes = true;
     this.listViewDetails.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listViewDetails.FullRowSelect = true;
     this.listViewDetails.Location = new System.Drawing.Point(0, 0);
     this.listViewDetails.Name = "listViewDetails";
     this.listViewDetails.Size = new System.Drawing.Size(472, 456);
     this.listViewDetails.TabIndex = 0;
     this.listViewDetails.View = System.Windows.Forms.View.Details;
     //
     // ListViewTestForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6, 15);
     this.ClientSize = new System.Drawing.Size(472, 456);
     this.Controls.Add(this.listViewDetails);
     this.Name = "ListViewTestForm";
     this.Text = "ListViewTestForm";
     this.ResumeLayout(false);
 }
开发者ID:js1987,项目名称:MbUnitForms,代码行数:29,代码来源:ListViewTestForm.cs

示例2: InitializeComponent

 /// <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.groupBox1 = new System.Windows.Forms.GroupBox();
     this.listView1 = new System.Windows.Forms.ListView();
     this.button1 = new System.Windows.Forms.Button();
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.listView1);
     this.groupBox1.Location = new System.Drawing.Point(30, 26);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(406, 199);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "双击选择服务";
     //
     // listView1
     //
     this.listView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listView1.Location = new System.Drawing.Point(3, 21);
     this.listView1.Name = "listView1";
     this.listView1.Size = new System.Drawing.Size(400, 175);
     this.listView1.TabIndex = 0;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.List;
     this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(358, 241);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 1;
     this.button1.Text = "取消";
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // toolTip1
     //
     this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
     //
     // ServiceSelector
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(472, 306);
     this.ControlBox = false;
     this.Controls.Add(this.button1);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox = false;
     this.Name = "ServiceSelector";
     this.Text = "ServiceSelector";
     this.Load += new System.EventHandler(this.ServiceSelector_Load);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:zhiyix,项目名称:stockmarket,代码行数:64,代码来源:ServiceSelector.designer.cs

示例3: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSpyware));
     this.spywareLst = new System.Windows.Forms.ListView();
     this.colSpyware = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colFilePath = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.SuspendLayout();
     //
     // spywareLst
     //
     resources.ApplyResources(this.spywareLst, "spywareLst");
     this.spywareLst.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.colSpyware,
     this.colFilePath});
     this.spywareLst.Name = "spywareLst";
     this.spywareLst.UseCompatibleStateImageBehavior = false;
     this.spywareLst.View = System.Windows.Forms.View.Details;
     //
     // colSpyware
     //
     resources.ApplyResources(this.colSpyware, "colSpyware");
     //
     // colFilePath
     //
     resources.ApplyResources(this.colFilePath, "colFilePath");
     //
     // FrmSpyware
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.spywareLst);
     this.Name = "FrmSpyware";
     this.ShowIcon = false;
     this.ResumeLayout(false);
 }
开发者ID:nullkuhl,项目名称:fsu-dev,代码行数:39,代码来源:FormSpyware.designer.cs

示例4: InitializeComponent

 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.listView1 = new System.Windows.Forms.ListView();
     this.SuspendLayout();
     //
     // listView1
     //
     this.listView1.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.listView1.CheckBoxes = true;
     this.listView1.Location = new System.Drawing.Point(0, 0);
     this.listView1.Margin = new System.Windows.Forms.Padding(0);
     this.listView1.Name = "listView1";
     this.listView1.Size = new System.Drawing.Size(150, 100);
     this.listView1.TabIndex = 0;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.List;
     this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
     //
     // ExcelListNames
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.listView1);
     this.Margin = new System.Windows.Forms.Padding(0);
     this.Name = "ExcelListNames";
     this.Size = new System.Drawing.Size(150, 100);
     this.Load += new System.EventHandler(this.ExcelListNames_Load);
     this.ResumeLayout(false);
 }
开发者ID:alnemer,项目名称:excel-qa-tools,代码行数:35,代码来源:ExcelListNames.designer.cs

示例5: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.deviceListVw = new System.Windows.Forms.ListView();
     this.cancelButton = new System.Windows.Forms.Button();
     this.okButton = new System.Windows.Forms.Button();
     this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
     this.SuspendLayout();
     //
     // deviceListVw
     //
     this.deviceListVw.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader1});
     this.deviceListVw.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.deviceListVw.Location = new System.Drawing.Point(12, 12);
     this.deviceListVw.Name = "deviceListVw";
     this.deviceListVw.Size = new System.Drawing.Size(327, 108);
     this.deviceListVw.TabIndex = 0;
     this.deviceListVw.UseCompatibleStateImageBehavior = false;
     this.deviceListVw.View = System.Windows.Forms.View.Details;
     this.deviceListVw.SelectedIndexChanged += new System.EventHandler(this.deviceListVw_SelectedIndexChanged);
     //
     // cancelButton
     //
     this.cancelButton.Location = new System.Drawing.Point(216, 136);
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.Size = new System.Drawing.Size(75, 23);
     this.cancelButton.TabIndex = 1;
     this.cancelButton.Text = "cancel";
     this.cancelButton.UseVisualStyleBackColor = true;
     this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
     //
     // okButton
     //
     this.okButton.Location = new System.Drawing.Point(48, 136);
     this.okButton.Name = "okButton";
     this.okButton.Size = new System.Drawing.Size(75, 23);
     this.okButton.TabIndex = 2;
     this.okButton.Text = "OK";
     this.okButton.UseVisualStyleBackColor = true;
     this.okButton.Click += new System.EventHandler(this.okButton_Click);
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Name";
     this.columnHeader1.Width = 400;
     //
     // DeviceSelector
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(351, 180);
     this.Controls.Add(this.okButton);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.deviceListVw);
     this.Name = "DeviceSelector";
     this.Text = "DeviceSelector";
     this.Load += new System.EventHandler(this.DeviceSelector_Load);
     this.ResumeLayout(false);
 }
开发者ID:yuanjunsc,项目名称:Telepresence-Robo,代码行数:63,代码来源:DeviceSelector.designer.cs

示例6: InitializeComponent

 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlProperties));
     this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.listViewProperties = new System.Windows.Forms.ListView();
     this.columnHeaderProperty = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.contextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuStrip
     //
     this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.copyToolStripMenuItem});
     this.contextMenuStrip.Name = "contextMenuStrip";
     resources.ApplyResources(this.contextMenuStrip, "contextMenuStrip");
     this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip_Opening);
     //
     // copyToolStripMenuItem
     //
     this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
     resources.ApplyResources(this.copyToolStripMenuItem, "copyToolStripMenuItem");
     this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
     //
     // listViewProperties
     //
     this.listViewProperties.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeaderProperty,
     this.columnHeaderValue});
     this.listViewProperties.ContextMenuStrip = this.contextMenuStrip;
     resources.ApplyResources(this.listViewProperties, "listViewProperties");
     this.listViewProperties.FullRowSelect = true;
     this.listViewProperties.GridLines = true;
     this.listViewProperties.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.listViewProperties.MultiSelect = false;
     this.listViewProperties.Name = "listViewProperties";
     this.listViewProperties.ShowItemToolTips = true;
     this.listViewProperties.UseCompatibleStateImageBehavior = false;
     this.listViewProperties.View = System.Windows.Forms.View.Details;
     //
     // columnHeaderProperty
     //
     resources.ApplyResources(this.columnHeaderProperty, "columnHeaderProperty");
     //
     // columnHeaderValue
     //
     resources.ApplyResources(this.columnHeaderValue, "columnHeaderValue");
     //
     // ControlProperties
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.listViewProperties);
     this.Name = "ControlProperties";
     this.contextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:plutext,项目名称:OpenDoPE-Mapping-WordAddIn,代码行数:63,代码来源:ControlProperties.designer.cs

示例7: InitializeComponent

 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.listView1 = new System.Windows.Forms.ListView();
     this.zgc = new ZedGraph.ZedGraphControl();
     this.btnrePlot = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // listView1
     //
     this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)));
     this.listView1.GridLines = true;
     this.listView1.Location = new System.Drawing.Point(12, 12);
     this.listView1.Name = "listView1";
     this.listView1.Size = new System.Drawing.Size(182, 295);
     this.listView1.TabIndex = 1;
     this.listView1.UseCompatibleStateImageBehavior = false;
     //
     // zgc
     //
     this.zgc.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.zgc.Location = new System.Drawing.Point(200, 12);
     this.zgc.Name = "zgc";
     this.zgc.ScrollGrace = 0D;
     this.zgc.ScrollMaxX = 0D;
     this.zgc.ScrollMaxY = 0D;
     this.zgc.ScrollMaxY2 = 0D;
     this.zgc.ScrollMinX = 0D;
     this.zgc.ScrollMinY = 0D;
     this.zgc.ScrollMinY2 = 0D;
     this.zgc.Size = new System.Drawing.Size(592, 332);
     this.zgc.TabIndex = 2;
     //
     // btnrePlot
     //
     this.btnrePlot.Location = new System.Drawing.Point(70, 321);
     this.btnrePlot.Name = "btnrePlot";
     this.btnrePlot.Size = new System.Drawing.Size(75, 23);
     this.btnrePlot.TabIndex = 3;
     this.btnrePlot.Text = "Replot";
     this.btnrePlot.UseVisualStyleBackColor = true;
     //
     // frmPlot
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(804, 356);
     this.Controls.Add(this.btnrePlot);
     this.Controls.Add(this.zgc);
     this.Controls.Add(this.listView1);
     this.Name = "frmPlot";
     this.Text = "frmPlot";
     this.ResumeLayout(false);
 }
开发者ID:wrbrooks,项目名称:VB3,代码行数:60,代码来源:frmPlot.designer.cs

示例8: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lvTask = new System.Windows.Forms.ListView();
     this.colTaskName = new System.Windows.Forms.ColumnHeader();
     this.colSource = new System.Windows.Forms.ColumnHeader();
     this.colTarget = new System.Windows.Forms.ColumnHeader();
     this.SuspendLayout();
     //
     // lvTask
     //
     this.lvTask.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.colTaskName,
     this.colSource,
     this.colTarget});
     this.lvTask.Dock = System.Windows.Forms.DockStyle.Fill;
     this.lvTask.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lvTask.FullRowSelect = true;
     this.lvTask.GridLines = true;
     this.lvTask.Location = new System.Drawing.Point(0, 0);
     this.lvTask.Name = "lvTask";
     this.lvTask.Size = new System.Drawing.Size(384, 244);
     this.lvTask.TabIndex = 1;
     this.lvTask.UseCompatibleStateImageBehavior = false;
     this.lvTask.View = System.Windows.Forms.View.Details;
     //
     // colTaskName
     //
     this.colTaskName.Text = "Name";
     this.colTaskName.Width = 100;
     //
     // colSource
     //
     this.colSource.Text = "Source";
     this.colSource.Width = 140;
     //
     // colTarget
     //
     this.colTarget.Text = "Target";
     this.colTarget.Width = 140;
     //
     // DisplayTaskForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(384, 244);
     this.Controls.Add(this.lvTask);
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Margin = new System.Windows.Forms.Padding(4);
     this.Name = "DisplayTaskForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Display Task Form";
     this.Load += new System.EventHandler(this.DisplayTaskForm_Load);
     this.ResumeLayout(false);
 }
开发者ID:riverstore,项目名称:syncsharp,代码行数:58,代码来源:DisplayTaskForm.designer.cs

示例9: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.listViewVirtualEffects = new System.Windows.Forms.ListView();
     this.buttonRemove = new System.Windows.Forms.Button();
     this.buttonCancel = new System.Windows.Forms.Button();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     this.SuspendLayout();
     //
     // listViewVirtualEffects
     //
     this.listViewVirtualEffects.Location = new System.Drawing.Point(12, 12);
     this.listViewVirtualEffects.Name = "listViewVirtualEffects";
     this.listViewVirtualEffects.Size = new System.Drawing.Size(260, 184);
     this.listViewVirtualEffects.TabIndex = 0;
     this.listViewVirtualEffects.UseCompatibleStateImageBehavior = false;
     this.listViewVirtualEffects.View = System.Windows.Forms.View.List;
     this.listViewVirtualEffects.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.listViewVirtualEffects_ItemSelectionChanged);
     //
     // buttonRemove
     //
     this.buttonRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonRemove.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.buttonRemove.Enabled = false;
     this.buttonRemove.Location = new System.Drawing.Point(197, 226);
     this.buttonRemove.Name = "buttonRemove";
     this.buttonRemove.Size = new System.Drawing.Size(75, 23);
     this.buttonRemove.TabIndex = 1;
     this.buttonRemove.Text = "Remove";
     this.buttonRemove.UseVisualStyleBackColor = true;
     //
     // buttonCancel
     //
     this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.Location = new System.Drawing.Point(116, 226);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Size = new System.Drawing.Size(75, 23);
     this.buttonCancel.TabIndex = 2;
     this.buttonCancel.Text = "Cancel";
     this.buttonCancel.UseVisualStyleBackColor = true;
     //
     // VirtualEffectRemoveDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(284, 261);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonRemove);
     this.Controls.Add(this.listViewVirtualEffects);
     this.Name = "VirtualEffectRemoveDialog";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Remove Virtual Effect";
     this.ResumeLayout(false);
 }
开发者ID:sall,项目名称:vixen-modules,代码行数:58,代码来源:VirtualEffectRemoveDialog.designer.cs

示例10: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("商品B", 0);
     System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("商品A", 1);
     System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("商品C", 2);
     System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("商品D", 3);
     System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("商品E", 4);
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Main));
     this.listView1 = new System.Windows.Forms.ListView();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.SuspendLayout();
     //
     // listView1
     //
     this.listView1.AllowDrop = true;
     this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
     listViewItem1,
     listViewItem2,
     listViewItem3,
     listViewItem4,
     listViewItem5});
     this.listView1.LargeImageList = this.imageList1;
     this.listView1.Location = new System.Drawing.Point(1, -1);
     this.listView1.Name = "listView1";
     this.listView1.Size = new System.Drawing.Size(301, 180);
     this.listView1.TabIndex = 0;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.DragDrop += new System.Windows.Forms.DragEventHandler(this.listView1_DragDrop);
     this.listView1.DragEnter += new System.Windows.Forms.DragEventHandler(this.listView1_DragEnter);
     this.listView1.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.listView1_ItemDrag);
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "1.bmp");
     this.imageList1.Images.SetKeyName(1, "2.bmp");
     this.imageList1.Images.SetKeyName(2, "3.bmp");
     this.imageList1.Images.SetKeyName(3, "4.bmp");
     this.imageList1.Images.SetKeyName(4, "5.bmp");
     //
     // Frm_Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(303, 179);
     this.Controls.Add(this.listView1);
     this.Name = "Frm_Main";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "在列表视图中拖动视图项";
     this.ResumeLayout(false);
 }
开发者ID:TGHGH,项目名称:C-1200,代码行数:57,代码来源:Frm_Main.designer.cs

示例11: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmDetails));
     this.listview = new System.Windows.Forms.ListView();
     this.FileName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.Type = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.SuspendLayout();
     //
     // listview
     //
     this.listview.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.listview.BackColor = System.Drawing.SystemColors.Window;
     this.listview.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.FileName,
     this.Type});
     this.listview.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.listview.ForeColor = System.Drawing.SystemColors.ControlText;
     this.listview.FullRowSelect = true;
     this.listview.LabelWrap = false;
     this.listview.Location = new System.Drawing.Point(12, 12);
     this.listview.MultiSelect = false;
     this.listview.Name = "listview";
     this.listview.Size = new System.Drawing.Size(527, 188);
     this.listview.TabIndex = 50;
     this.listview.UseCompatibleStateImageBehavior = false;
     this.listview.View = System.Windows.Forms.View.Details;
     //
     // FileName
     //
     this.FileName.Text = "File Name";
     this.FileName.Width = 205;
     //
     // Type
     //
     this.Type.Text = "Location";
     this.Type.Width = 2000;
     //
     // FrmDetails
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(551, 218);
     this.Controls.Add(this.listview);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "FrmDetails";
     this.ShowIcon = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Problem Details";
     this.Load += new System.EventHandler(this.frmDetails_Load);
     this.ResumeLayout(false);
 }
开发者ID:nullkuhl,项目名称:fsu-dev,代码行数:57,代码来源:FormDetails.designer.cs

示例12: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lv_Services = new System.Windows.Forms.ListView();
     this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
     this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
     this.SuspendLayout();
     //
     // lv_Services
     //
     this.lv_Services.CheckBoxes = true;
     this.lv_Services.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader1,
     this.columnHeader2,
     this.columnHeader3});
     this.lv_Services.Dock = System.Windows.Forms.DockStyle.Fill;
     this.lv_Services.Location = new System.Drawing.Point(0, 0);
     this.lv_Services.Name = "lv_Services";
     this.lv_Services.Size = new System.Drawing.Size(295, 425);
     this.lv_Services.TabIndex = 0;
     this.lv_Services.UseCompatibleStateImageBehavior = false;
     this.lv_Services.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Service";
     this.columnHeader1.Width = 110;
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Port ";
     this.columnHeader2.Width = 80;
     //
     // columnHeader3
     //
     this.columnHeader3.Text = "Protocol";
     this.columnHeader3.Width = 80;
     //
     // frmServiceList
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(295, 425);
     this.ControlBox = false;
     this.Controls.Add(this.lv_Services);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name = "frmServiceList";
     this.ShowIcon = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text = "ServiceList";
     this.ResumeLayout(false);
 }
开发者ID:mcorrientes,项目名称:Web-Security-Toolset,代码行数:56,代码来源:frmServiceList.designer.cs

示例13: WinGuiWpfDataContext

        /// <summary>
        /// Constructor</summary>
        public WinGuiWpfDataContext()
        {
            m_listView = new System.Windows.Forms.ListView();
            m_listView.SmallImageList = ResourceUtil.GetImageList16();
            m_listView.AllowDrop = true;
            m_listView.MultiSelect = true;
            m_listView.AllowColumnReorder = true;
            m_listView.LabelEdit = true;
            m_listView.Dock = System.Windows.Forms.DockStyle.Fill;
            m_listView.Height = 100;
            m_listView.Width = 100;

            if (Reloaded == null) return; // suppress compiler warning
        }
开发者ID:Joxx0r,项目名称:ATF,代码行数:16,代码来源:WinGuiWpfDataContext.cs

示例14: InitializeComponent

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.Macro = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Description = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            m_macroList = new System.Windows.Forms.ListView();
            this.SuspendLayout();
            // 
            // Macro
            // 
            this.Macro.Text = "Macro";
            // 
            // Description
            // 
            this.Description.Text = "Description";
            this.Description.Width = 220;
            // 
            // m_macroList
            // 
            m_macroList.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)));
            m_macroList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.Macro,
            this.Description});
            m_macroList.FullRowSelect = true;
            m_macroList.GridLines = true;
            m_macroList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            m_macroList.LabelWrap = false;
            m_macroList.Location = new System.Drawing.Point(12, 12);
            m_macroList.MultiSelect = false;
            m_macroList.Name = "m_macroList";
            m_macroList.Size = new System.Drawing.Size(289, 170);
            m_macroList.TabIndex = 0;
            m_macroList.UseCompatibleStateImageBehavior = false;
            m_macroList.View = System.Windows.Forms.View.Details;
            m_macroList.ItemActivate += new System.EventHandler(this.selectMacro);
            // 
            // MacroHelper
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(313, 194);
            this.Controls.Add(m_macroList);
            this.Name = "MacroHelper";
            this.Text = "Macro Helper";
            this.ResumeLayout(false);

        }
开发者ID:diemhuongpie,项目名称:QuanLyDoAn_OOD,代码行数:52,代码来源:MacroHelper.Designer.cs

示例15: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmShortcutFixer));
     this.shortcutsLst = new System.Windows.Forms.ListView();
     this.colName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colTarget = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colLocation = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.SuspendLayout();
     //
     // shortcutsLst
     //
     resources.ApplyResources(this.shortcutsLst, "shortcutsLst");
     this.shortcutsLst.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.colName,
     this.colTarget,
     this.colLocation,
     this.colDescription});
     this.shortcutsLst.Name = "shortcutsLst";
     this.shortcutsLst.UseCompatibleStateImageBehavior = false;
     this.shortcutsLst.View = System.Windows.Forms.View.Details;
     //
     // colName
     //
     resources.ApplyResources(this.colName, "colName");
     //
     // colTarget
     //
     resources.ApplyResources(this.colTarget, "colTarget");
     //
     // colLocation
     //
     resources.ApplyResources(this.colLocation, "colLocation");
     //
     // colDescription
     //
     resources.ApplyResources(this.colDescription, "colDescription");
     //
     // FrmShortcutFixer
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.shortcutsLst);
     this.Name = "FrmShortcutFixer";
     this.ShowIcon = false;
     this.ResumeLayout(false);
 }
开发者ID:nullkuhl,项目名称:fsu-dev,代码行数:51,代码来源:FormShortcutFixer.designer.cs


注:本文中的System.Windows.Forms.ListView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。