Download ListBoxInsertionDragDemo.zip version 1.0.0.0, last updated 27/07/2014 (14.71 KB)

Download
  • md5: 39356bf60268fa530c9f0e472b474eb7
namespace ListBoxInsertionDragDemo
{
  partial class DemoForm
  {
    /// <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.allowItemDragCheckBox = new System.Windows.Forms.CheckBox();
      this.ownerdrawCheckBox = new System.Windows.Forms.CheckBox();
      this.eventsListBox = new ListBoxInsertionDragDemo.EventsListBox();
      this.listBox = new ListBoxInsertionDragDemo.ListBox();
      this.SuspendLayout();
      // 
      // allowItemDragCheckBox
      // 
      this.allowItemDragCheckBox.AutoSize = true;
      this.allowItemDragCheckBox.Checked = true;
      this.allowItemDragCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
      this.allowItemDragCheckBox.Location = new System.Drawing.Point(344, 12);
      this.allowItemDragCheckBox.Name = "allowItemDragCheckBox";
      this.allowItemDragCheckBox.Size = new System.Drawing.Size(97, 17);
      this.allowItemDragCheckBox.TabIndex = 1;
      this.allowItemDragCheckBox.Text = "&Allow item drag";
      this.allowItemDragCheckBox.UseVisualStyleBackColor = true;
      this.allowItemDragCheckBox.CheckedChanged += new System.EventHandler(this.allowItemDragCheckBox_CheckedChanged);
      // 
      // ownerdrawCheckBox
      // 
      this.ownerdrawCheckBox.AutoSize = true;
      this.ownerdrawCheckBox.Checked = true;
      this.ownerdrawCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
      this.ownerdrawCheckBox.Location = new System.Drawing.Point(447, 12);
      this.ownerdrawCheckBox.Name = "ownerdrawCheckBox";
      this.ownerdrawCheckBox.Size = new System.Drawing.Size(80, 17);
      this.ownerdrawCheckBox.TabIndex = 2;
      this.ownerdrawCheckBox.Text = "&Ownerdraw";
      this.ownerdrawCheckBox.UseVisualStyleBackColor = true;
      this.ownerdrawCheckBox.CheckedChanged += new System.EventHandler(this.ownerdrawCheckBox_CheckedChanged);
      // 
      // eventsListBox
      // 
      this.eventsListBox.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.eventsListBox.FormattingEnabled = true;
      this.eventsListBox.HorizontalScrollbar = true;
      this.eventsListBox.Location = new System.Drawing.Point(344, 31);
      this.eventsListBox.Name = "eventsListBox";
      this.eventsListBox.Size = new System.Drawing.Size(467, 394);
      this.eventsListBox.TabIndex = 3;
      // 
      // listBox
      // 
      this.listBox.AllowDrop = true;
      this.listBox.AllowItemDrag = true;
      this.listBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
      this.listBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
      this.listBox.IntegralHeight = false;
      this.listBox.ItemHeight = 24;
      this.listBox.Location = new System.Drawing.Point(12, 12);
      this.listBox.Name = "listBox";
      this.listBox.Size = new System.Drawing.Size(326, 413);
      this.listBox.TabIndex = 0;
      this.listBox.ItemDragging += new System.EventHandler<ListBoxInsertionDragDemo.CancelListBoxItemDragEventArgs>(this.listBox_ItemDragging);
      this.listBox.ItemDrag += new System.EventHandler<ListBoxInsertionDragDemo.ListBoxItemDragEventArgs>(this.listBox_ItemDrag);
      this.listBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.listBox_DrawItem);
      // 
      // DemoForm
      // 
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.ClientSize = new System.Drawing.Size(823, 437);
      this.Controls.Add(this.ownerdrawCheckBox);
      this.Controls.Add(this.eventsListBox);
      this.Controls.Add(this.allowItemDragCheckBox);
      this.Controls.Add(this.listBox);
      this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
      this.MaximizeBox = false;
      this.Name = "DemoForm";
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
      this.Text = "ListBox Item Drag Demonstration";
      this.ResumeLayout(false);
      this.PerformLayout();

    }

    #endregion

    private ListBox listBox;
    private System.Windows.Forms.CheckBox allowItemDragCheckBox;
    private EventsListBox eventsListBox;
    private System.Windows.Forms.CheckBox ownerdrawCheckBox;
  }
}

Donate

Donate