namespace OwnerDrawSample { partial class OwnerDrawnVariableSampleForm { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// protected override void Dispose(bool disposing) { if( disposing && (components != null) ) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.listBox = new System.Windows.Forms.ListBox(); this.SuspendLayout(); // // listBox // this.listBox.Dock = System.Windows.Forms.DockStyle.Fill; this.listBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; this.listBox.FormattingEnabled = true; this.listBox.IntegralHeight = false; this.listBox.Items.AddRange(new object[] { "Foo", "Bar", "Quux"}); this.listBox.Location = new System.Drawing.Point(0, 0); this.listBox.Name = "listBox"; this.listBox.Size = new System.Drawing.Size(448, 238); this.listBox.TabIndex = 0; this.listBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.listBox_DrawItem); this.listBox.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.listBox_MeasureItem); // // OwnerDrawnVariableSampleForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(448, 238); this.Controls.Add(this.listBox); this.Name = "OwnerDrawnVariableSampleForm"; this.Text = "Owner-Drawn Variable ListBox Sample"; this.ResumeLayout(false); } #endregion private System.Windows.Forms.ListBox listBox; } }