<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FComboBox</id>
		<title>Csharp/C Sharp/GUI Windows Form/ComboBox - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FComboBox"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/ComboBox&amp;action=history"/>
		<updated>2026-04-29T17:30:45Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/ComboBox&amp;diff=166&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/ComboBox&amp;diff=166&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/ComboBox&amp;diff=167&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/ComboBox&amp;diff=167&amp;oldid=prev"/>
				<updated>2010-05-26T11:33:43Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Add items to combo box==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Select : Form {&lt;br /&gt;
  private Button draw = new Button();&lt;br /&gt;
  private ComboBox color = new ComboBox();&lt;br /&gt;
  public Select( ) {&lt;br /&gt;
    draw.Text = &amp;quot;Draw&amp;quot;;&lt;br /&gt;
    color.Text = &amp;quot;Choose a color&amp;quot;;&lt;br /&gt;
    Size = new Size(500,250);&lt;br /&gt;
    int w = 20;&lt;br /&gt;
    draw.Location = new Point(20,30);&lt;br /&gt;
    color.Location = new Point(w += 10 + color.Width, 30);&lt;br /&gt;
    color.Items.Add(&amp;quot;Red&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Green&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Blue&amp;quot;);&lt;br /&gt;
    Controls.Add(draw);&lt;br /&gt;
    Controls.Add(color);&lt;br /&gt;
    draw.Click += new EventHandler(Draw_Click);&lt;br /&gt;
  } &lt;br /&gt;
  protected void Draw_Click(Object sender, EventArgs e) {&lt;br /&gt;
    if (color.SelectedItem.ToString() == &amp;quot;Red&amp;quot; )&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is red.&amp;quot;);&lt;br /&gt;
    else if (color.SelectedItem.ToString() == &amp;quot;Green&amp;quot;)&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is green.&amp;quot;);&lt;br /&gt;
    else&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is blue.&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  static void Main() {&lt;br /&gt;
    Application.Run(new Select());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ComboBox Selected Item changed event==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class SelectItem : Form {&lt;br /&gt;
  private RadioButton square = new RadioButton();&lt;br /&gt;
  private RadioButton circle = new RadioButton();&lt;br /&gt;
  private ComboBox color = new ComboBox();&lt;br /&gt;
  public SelectItem( ) {&lt;br /&gt;
    Text = &amp;quot;Select Item&amp;quot;;&lt;br /&gt;
    square.Text = &amp;quot;Square&amp;quot;;&lt;br /&gt;
    circle.Text = &amp;quot;Circle&amp;quot;;&lt;br /&gt;
    color.Text = &amp;quot;Choose a color&amp;quot;;&lt;br /&gt;
    Size = new Size(400,250);&lt;br /&gt;
    int w = 20;&lt;br /&gt;
    square.Location = new Point(w, 30);&lt;br /&gt;
    circle.Location = new Point(w += 10 + square.Width, 30);&lt;br /&gt;
    color.Location = new Point(w += 10 + circle.Width, 30);&lt;br /&gt;
    color.Items.Add(&amp;quot;Red&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Green&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Blue&amp;quot;);&lt;br /&gt;
    Controls.Add(square);&lt;br /&gt;
    Controls.Add(circle);&lt;br /&gt;
    Controls.Add(color);&lt;br /&gt;
    square.CheckedChanged += new EventHandler(Checked_Changed);&lt;br /&gt;
    circle.CheckedChanged += new EventHandler(Checked_Changed);&lt;br /&gt;
    color.SelectedIndexChanged += new EventHandler(Selected_Index);&lt;br /&gt;
  } &lt;br /&gt;
  protected void Selected_Index(Object sender, EventArgs e) {&lt;br /&gt;
    if (color.SelectedItem.ToString() == &amp;quot;Red&amp;quot; )&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is red.&amp;quot;);&lt;br /&gt;
    else if (color.SelectedItem.ToString() == &amp;quot;Green&amp;quot;)&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is green.&amp;quot;);&lt;br /&gt;
    else&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is Blue&amp;quot;); &lt;br /&gt;
  }&lt;br /&gt;
  protected void Checked_Changed(Object sender, EventArgs e) {&lt;br /&gt;
    if (square.Checked)&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is rectangle&amp;quot;);&lt;br /&gt;
    else&lt;br /&gt;
      Console.WriteLine(&amp;quot;Ellipse&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  static void Main() {&lt;br /&gt;
    Application.Run(new SelectItem());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ComboBox selected Item changed event 1==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
  private System.Windows.Forms.GroupBox groupBox1;&lt;br /&gt;
  private System.Windows.Forms.ruboBox lstFonts;&lt;br /&gt;
  private System.Windows.Forms.Label label1;&lt;br /&gt;
  private System.Windows.Forms.StatusStrip statusBar;&lt;br /&gt;
  private System.Windows.Forms.ToolStripStatusLabel statusLabel;&lt;br /&gt;
  public Form1() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    System.Drawing.Text.InstalledFontCollection fonts = new System.Drawing.Text.InstalledFontCollection();&lt;br /&gt;
    foreach (FontFamily family in fonts.Families)&lt;br /&gt;
    {&lt;br /&gt;
      lstFonts.Items.Add(family.Name);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  private void lstFonts_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
        this.Invalidate();&lt;br /&gt;
  }&lt;br /&gt;
  private void Form1_Paint(object sender, PaintEventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    if (lstFonts.SelectedIndex != -1)&lt;br /&gt;
    {&lt;br /&gt;
            e.Graphics.DrawString(lstFonts.Text, new Font(lstFonts.Text, 50), Brushes.Black, 10, 50);&lt;br /&gt;
            statusBar.Items[0].Text = lstFonts.Text;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
    this.groupBox1 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
    this.lstFonts = new System.Windows.Forms.ruboBox();&lt;br /&gt;
    this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
    this.statusBar = new System.Windows.Forms.StatusStrip();&lt;br /&gt;
    this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel();&lt;br /&gt;
    this.groupBox1.SuspendLayout();&lt;br /&gt;
    this.statusBar.SuspendLayout();&lt;br /&gt;
    this.SuspendLayout();&lt;br /&gt;
    // &lt;br /&gt;
    // groupBox1&lt;br /&gt;
    // &lt;br /&gt;
    this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)&lt;br /&gt;
          | System.Windows.Forms.AnchorStyles.Right)));&lt;br /&gt;
    this.groupBox1.Controls.Add(this.lstFonts);&lt;br /&gt;
    this.groupBox1.Controls.Add(this.label1);&lt;br /&gt;
    this.groupBox1.Location = new System.Drawing.Point(7, 0);&lt;br /&gt;
    this.groupBox1.Name = &amp;quot;groupBox1&amp;quot;;&lt;br /&gt;
    this.groupBox1.Size = new System.Drawing.Size(497, 40);&lt;br /&gt;
    this.groupBox1.TabIndex = 1;&lt;br /&gt;
    this.groupBox1.TabStop = false;&lt;br /&gt;
    // &lt;br /&gt;
    // lstFonts&lt;br /&gt;
    // &lt;br /&gt;
    this.lstFonts.DropDownStyle = System.Windows.Forms.ruboBoxStyle.DropDownList;&lt;br /&gt;
    this.lstFonts.DropDownWidth = 340;&lt;br /&gt;
    this.lstFonts.FormattingEnabled = true;&lt;br /&gt;
    this.lstFonts.Location = new System.Drawing.Point(100, 12);&lt;br /&gt;
    this.lstFonts.Name = &amp;quot;lstFonts&amp;quot;;&lt;br /&gt;
    this.lstFonts.Size = new System.Drawing.Size(340, 21);&lt;br /&gt;
    this.lstFonts.TabIndex = 1;&lt;br /&gt;
    this.lstFonts.SelectedIndexChanged += new System.EventHandler(this.lstFonts_SelectedIndexChanged);&lt;br /&gt;
    // &lt;br /&gt;
    // label1&lt;br /&gt;
    // &lt;br /&gt;
    this.label1.Location = new System.Drawing.Point(12, 16);&lt;br /&gt;
    this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
    this.label1.Size = new System.Drawing.Size(80, 12);&lt;br /&gt;
    this.label1.TabIndex = 0;&lt;br /&gt;
    this.label1.Text = &amp;quot;Choose Font:&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // statusBar&lt;br /&gt;
    // &lt;br /&gt;
    this.statusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {&lt;br /&gt;
        this.statusLabel});&lt;br /&gt;
    this.statusBar.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;&lt;br /&gt;
    this.statusBar.Location = new System.Drawing.Point(0, 155);&lt;br /&gt;
    this.statusBar.Name = &amp;quot;statusBar&amp;quot;;&lt;br /&gt;
    this.statusBar.Size = new System.Drawing.Size(516, 22);&lt;br /&gt;
    this.statusBar.TabIndex = 2;&lt;br /&gt;
    this.statusBar.Text = &amp;quot;statusStrip1&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // statusLabel&lt;br /&gt;
    // &lt;br /&gt;
    this.statusLabel.Name = &amp;quot;statusLabel&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // Form1&lt;br /&gt;
    // &lt;br /&gt;
    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
    this.ClientSize = new System.Drawing.Size(516, 177);&lt;br /&gt;
    this.Controls.Add(this.groupBox1);&lt;br /&gt;
    this.Controls.Add(this.statusBar);&lt;br /&gt;
    this.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
    this.Text = &amp;quot;Font Viewer&amp;quot;;&lt;br /&gt;
    this.Load += new System.EventHandler(this.Form1_Load);&lt;br /&gt;
    this.groupBox1.ResumeLayout(false);&lt;br /&gt;
    this.statusBar.ResumeLayout(false);&lt;br /&gt;
    this.ResumeLayout(false);&lt;br /&gt;
    this.PerformLayout();&lt;br /&gt;
  }&lt;br /&gt;
  [STAThread]&lt;br /&gt;
  static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.EnableVisualStyles();&lt;br /&gt;
    Application.Run(new Form1());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ComboBox selected item changed event 2==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
&lt;br /&gt;
public class Test : Form {&lt;br /&gt;
 &lt;br /&gt;
  private RadioButton square = new RadioButton();&lt;br /&gt;
  private RadioButton circle = new RadioButton();&lt;br /&gt;
  private ComboBox color = new ComboBox();&lt;br /&gt;
 &lt;br /&gt;
  private Color c = Color.Red;&lt;br /&gt;
 &lt;br /&gt;
  public Test( ) {&lt;br /&gt;
    Text = &amp;quot;Select Item&amp;quot;;&lt;br /&gt;
    square.Text = &amp;quot;Square&amp;quot;;&lt;br /&gt;
    circle.Text = &amp;quot;Circle&amp;quot;;&lt;br /&gt;
    color.Text = &amp;quot;Choose a color&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
    Size = new Size(400,250);&lt;br /&gt;
 &lt;br /&gt;
    int w = 20;&lt;br /&gt;
    square.Location = new Point(w, 30);&lt;br /&gt;
    circle.Location = new Point(w += 10 + square.Width, 30);&lt;br /&gt;
    color.Location = new Point(w += 10 + circle.Width, 30);&lt;br /&gt;
 &lt;br /&gt;
    color.Items.Add(&amp;quot;Red&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Green&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Blue&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
    Controls.Add(square);&lt;br /&gt;
    Controls.Add(circle);&lt;br /&gt;
    Controls.Add(color);&lt;br /&gt;
 &lt;br /&gt;
    square.CheckedChanged += new EventHandler(Checked_Changed); &lt;br /&gt;
    circle.CheckedChanged += new EventHandler(Checked_Changed); &lt;br /&gt;
    color.SelectedIndexChanged += new EventHandler(Selected_Index); &lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  protected override void OnPaint(PaintEventArgs e){&lt;br /&gt;
    Graphics g = e.Graphics;&lt;br /&gt;
    Brush brush = new SolidBrush(c);&lt;br /&gt;
    if (square.Checked)&lt;br /&gt;
      g.FillRectangle(brush,100,100,100,100);&lt;br /&gt;
    else&lt;br /&gt;
      g.FillEllipse(brush,100,100,100,100);&lt;br /&gt;
    base.OnPaint( e );&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  protected void Selected_Index(Object sender, EventArgs e){&lt;br /&gt;
    if (color.SelectedItem.ToString() == &amp;quot;Red&amp;quot; )&lt;br /&gt;
      c = Color.Red;&lt;br /&gt;
    else if (color.SelectedItem.ToString() == &amp;quot;Green&amp;quot;)&lt;br /&gt;
      c = Color.Green;&lt;br /&gt;
    else&lt;br /&gt;
      c = Color.Blue;&lt;br /&gt;
    Invalidate();&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  protected void Checked_Changed(Object sender, EventArgs e) {&lt;br /&gt;
    Invalidate();&lt;br /&gt;
  }&lt;br /&gt;
  static void Main() {&lt;br /&gt;
    Application.Run(new Test());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ComboBox with color cell renderer==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
Professional Windows GUI Programming Using C#&lt;br /&gt;
by Jay Glynn, Csaba Torok, Richard Conway, Wahid Choudhury, &lt;br /&gt;
   Zach Greenvoss, Shripad Kulkarni, Neil Whitlow&lt;br /&gt;
Publisher: Peer Information&lt;br /&gt;
ISBN: 1861007663&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
namespace MyComboBox&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for MyComboBox.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class MyComboBox : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.ruboBox comboBox1;&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.ruboBox comboBox2;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    ArrayList colorArray = new ArrayList() ;&lt;br /&gt;
    ArrayList fontArray  = new ArrayList() ;&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required designer variable.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
    public MyComboBox()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if (components != null) &lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.ruboBox1 = new System.Windows.Forms.ruboBox();&lt;br /&gt;
      this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.ruboBox2 = new System.Windows.Forms.ruboBox();&lt;br /&gt;
      this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // comboBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.ruboBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;&lt;br /&gt;
      this.ruboBox1.ItemHeight = 25;&lt;br /&gt;
      this.ruboBox1.Location = new System.Drawing.Point(16, 40);&lt;br /&gt;
      this.ruboBox1.Name = &amp;quot;comboBox1&amp;quot;;&lt;br /&gt;
      this.ruboBox1.Size = new System.Drawing.Size(264, 31);&lt;br /&gt;
      this.ruboBox1.TabIndex = 0;&lt;br /&gt;
      this.ruboBox1.SelectedIndexChanged += new System.EventHandler(this.MyItemSelected);&lt;br /&gt;
      this.ruboBox1.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ruboBox1_MeasureItem);&lt;br /&gt;
      this.ruboBox1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ruboBox1_DrawItem);&lt;br /&gt;
      // &lt;br /&gt;
      // label1&lt;br /&gt;
      // &lt;br /&gt;
      this.label1.Location = new System.Drawing.Point(16, 16);&lt;br /&gt;
      this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
      this.label1.Size = new System.Drawing.Size(100, 16);&lt;br /&gt;
      this.label1.TabIndex = 1;&lt;br /&gt;
      this.label1.Text = &amp;quot;Font Combo Box&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // comboBox2&lt;br /&gt;
      // &lt;br /&gt;
      this.ruboBox2.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;&lt;br /&gt;
      this.ruboBox2.DropDownStyle = System.Windows.Forms.ruboBoxStyle.DropDownList;&lt;br /&gt;
      this.ruboBox2.ItemHeight = 20;&lt;br /&gt;
      this.ruboBox2.Location = new System.Drawing.Point(16, 104);&lt;br /&gt;
      this.ruboBox2.Name = &amp;quot;comboBox2&amp;quot;;&lt;br /&gt;
      this.ruboBox2.Size = new System.Drawing.Size(264, 26);&lt;br /&gt;
      this.ruboBox2.TabIndex = 0;&lt;br /&gt;
      this.ruboBox2.SelectedIndexChanged += new System.EventHandler(this.MyItemSelected);&lt;br /&gt;
      this.ruboBox2.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ruboBox2_DrawItem);&lt;br /&gt;
      // &lt;br /&gt;
      // label2&lt;br /&gt;
      // &lt;br /&gt;
      this.label2.Location = new System.Drawing.Point(24, 80);&lt;br /&gt;
      this.label2.Name = &amp;quot;label2&amp;quot;;&lt;br /&gt;
      this.label2.TabIndex = 2;&lt;br /&gt;
      this.label2.Text = &amp;quot;Color Combo Box&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // MyComboBox&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(312, 157);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                      this.label2,&lt;br /&gt;
                                      this.label1,&lt;br /&gt;
                                      this.ruboBox1,&lt;br /&gt;
                                      this.ruboBox2});&lt;br /&gt;
      this.Name = &amp;quot;MyComboBox&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;OwnerDraw ComboBox&amp;quot;;&lt;br /&gt;
      this.Load += new System.EventHandler(this.MyComboBox_Load);&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The main entry point for the application.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new MyComboBox());&lt;br /&gt;
    }&lt;br /&gt;
    private void MyComboBox_Load(object sender, System.EventArgs e)&lt;br /&gt;
    {  &lt;br /&gt;
      // Fill an array with the different color you wish&lt;br /&gt;
      // to display in the ComboBox&lt;br /&gt;
      colorArray.Add(new SolidBrush(Color.Yellow));&lt;br /&gt;
      colorArray.Add(new SolidBrush(Color.Black));&lt;br /&gt;
      colorArray.Add(new SolidBrush(Color.Azure));&lt;br /&gt;
      colorArray.Add(new SolidBrush(Color.Firebrick));&lt;br /&gt;
      colorArray.Add(new SolidBrush(Color.DarkMagenta));&lt;br /&gt;
      // Add blank items to the list, since the text we will display&lt;br /&gt;
      // will be the name of the Color we are painting&lt;br /&gt;
      comboBox2.Items.Add(&amp;quot;&amp;quot;);&lt;br /&gt;
      comboBox2.Items.Add(&amp;quot;&amp;quot;);&lt;br /&gt;
      comboBox2.Items.Add(&amp;quot;&amp;quot;);&lt;br /&gt;
      comboBox2.Items.Add(&amp;quot;&amp;quot;);&lt;br /&gt;
      comboBox2.Items.Add(&amp;quot;&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
      // Fill an array with the different fonts that you will use to display &lt;br /&gt;
      // items in the other comboBox&lt;br /&gt;
      fontArray .Add(new Font(&amp;quot;Ariel&amp;quot; , 15 , FontStyle.Bold ));&lt;br /&gt;
      fontArray .Add(new Font(&amp;quot;Courier&amp;quot; , 12 , FontStyle.Italic));&lt;br /&gt;
      fontArray .Add(new Font(&amp;quot;Veranda&amp;quot; , 14 , FontStyle.Bold));&lt;br /&gt;
      fontArray .Add(new Font(&amp;quot;System&amp;quot; , 10 , FontStyle.Strikeout));&lt;br /&gt;
      fontArray .Add(new Font(&amp;quot;Century SchoolBook&amp;quot; , 15 , FontStyle.Underline));&lt;br /&gt;
      // Add the items that in the listBox&lt;br /&gt;
      comboBox1.Items.Add(&amp;quot;Washington&amp;quot;);&lt;br /&gt;
      comboBox1.Items.Add(&amp;quot;Houston&amp;quot;);&lt;br /&gt;
      comboBox1.Items.Add(&amp;quot;Phoenix&amp;quot;);&lt;br /&gt;
      comboBox1.Items.Add(&amp;quot;Dallas&amp;quot;);&lt;br /&gt;
      comboBox1.Items.Add(&amp;quot;London&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void comboBox1_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      // Override this function to draw items in the Font comboBox&lt;br /&gt;
      // Get the Graphics Object (aka. CDC or Device Context Object )&lt;br /&gt;
      // passed via the DrawItemEventArgs parameter&lt;br /&gt;
      Graphics g = e.Graphics ;&lt;br /&gt;
      // Get the bounding rectangle of the item currently being painted&lt;br /&gt;
      Rectangle r = e.Bounds ;&lt;br /&gt;
      Font fn = null ;&lt;br /&gt;
      if ( e.Index &amp;gt;= 0 ) &lt;br /&gt;
      {&lt;br /&gt;
        // Get the Font object, at the specifid index in the fontArray&lt;br /&gt;
        fn = (Font)fontArray[e.Index];&lt;br /&gt;
        // Get the text that we wish to display&lt;br /&gt;
        string s = (string)comboBox1.Items[e.Index];&lt;br /&gt;
        // Set the string format options&lt;br /&gt;
        StringFormat sf = new StringFormat();&lt;br /&gt;
        sf.Alignment = StringAlignment.Near;&lt;br /&gt;
        Console.WriteLine(e.State.ToString());&lt;br /&gt;
        // Draw the rectangle&lt;br /&gt;
        e.Graphics.DrawRectangle(new Pen(new SolidBrush(Color.Black), 2 ), r );&lt;br /&gt;
        if ( e.State == ( DrawItemState.NoAccelerator | DrawItemState.NoFocusRect))&lt;br /&gt;
        {&lt;br /&gt;
          // if the item is not selected draw it with a different color&lt;br /&gt;
          e.Graphics.FillRectangle(new SolidBrush(Color.White) , r);&lt;br /&gt;
          e.Graphics.DrawString( s , fn , new SolidBrush(Color.Black), r ,sf);&lt;br /&gt;
          e.DrawFocusRectangle();&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
          // if the item is selected draw it with a different color&lt;br /&gt;
          e.Graphics.FillRectangle(new SolidBrush(Color.LightBlue) , r);&lt;br /&gt;
          e.Graphics.DrawString( s , fn , new SolidBrush(Color.Red), r ,sf);&lt;br /&gt;
          e.DrawFocusRectangle();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    private void comboBox2_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      // Override this function to draw items in the Color comboBox&lt;br /&gt;
      // Get the Graphics Object (aka. CDC or Device Context Object )&lt;br /&gt;
      // passed via the DrawItemEventArgs parameter&lt;br /&gt;
      Graphics g = e.Graphics ;&lt;br /&gt;
      // Get the bounding rectangle of the item currently being painted&lt;br /&gt;
      Rectangle r = e.Bounds ;&lt;br /&gt;
      if ( e.Index &amp;gt;= 0 ) &lt;br /&gt;
      {&lt;br /&gt;
        Rectangle rd = r ; &lt;br /&gt;
        rd.Width = 100 ; &lt;br /&gt;
        &lt;br /&gt;
        Rectangle rt = r ;&lt;br /&gt;
        r.Left = rd.Right ; &lt;br /&gt;
        // Get the brush object, at the specifid index in the colorArray&lt;br /&gt;
        SolidBrush b = (SolidBrush)colorArray[e.Index];&lt;br /&gt;
        // Fill a portion of the rectangle with the selected brush&lt;br /&gt;
        g.FillRectangle(b  , rd);&lt;br /&gt;
        // Set the string format options&lt;br /&gt;
        StringFormat sf = new StringFormat();&lt;br /&gt;
        sf.Alignment = StringAlignment.Near;&lt;br /&gt;
        Console.WriteLine(e.State.ToString());&lt;br /&gt;
        &lt;br /&gt;
        // Draw the rectangle&lt;br /&gt;
        e.Graphics.DrawRectangle(new Pen(new SolidBrush(Color.Black), 2 ), r );&lt;br /&gt;
        if ( e.State == ( DrawItemState.NoAccelerator | DrawItemState.NoFocusRect))&lt;br /&gt;
        {&lt;br /&gt;
          // if the item is not selected draw it with a different color&lt;br /&gt;
          e.Graphics.FillRectangle(new SolidBrush(Color.White) , r);&lt;br /&gt;
          e.Graphics.DrawString( b.Color.Name, new Font(&amp;quot;Ariel&amp;quot; , 8 , FontStyle.Bold  ) , new SolidBrush(Color.Black), r ,sf);&lt;br /&gt;
          e.DrawFocusRectangle();&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
          // if the item is selected draw it with a different color&lt;br /&gt;
          e.Graphics.FillRectangle(new SolidBrush(Color.LightBlue) , r);&lt;br /&gt;
          e.Graphics.DrawString( b.Color.Name, new Font(&amp;quot;Veranda&amp;quot; , 12 , FontStyle.Bold  ) , new SolidBrush(Color.Red), r ,sf);&lt;br /&gt;
          e.DrawFocusRectangle();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    private void MyItemSelected(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      // UnBox the sender. Since both the ComboBox controls use the same&lt;br /&gt;
      // events to handle the selection of item from the list&lt;br /&gt;
      ComboBox cb = null ;&lt;br /&gt;
      if ( sender.Equals(comboBox1))&lt;br /&gt;
        cb = comboBox1; &lt;br /&gt;
      else&lt;br /&gt;
        cb = comboBox2; &lt;br /&gt;
      &lt;br /&gt;
      // Get the index of the Item Selected&lt;br /&gt;
            int x = cb.SelectedIndex ;&lt;br /&gt;
      string str = &amp;quot;&amp;quot;;&lt;br /&gt;
      // Get the Text of the item selected&lt;br /&gt;
      if ( sender.Equals(comboBox1))&lt;br /&gt;
      {&lt;br /&gt;
        str = &amp;quot;Item Selected is = &amp;quot; + (string)cb.Items[x];&lt;br /&gt;
      }&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
        SolidBrush br = (SolidBrush)colorArray[x];&lt;br /&gt;
        str = &amp;quot;Color Selected is = &amp;quot; + br.Color.Name;&lt;br /&gt;
      }&lt;br /&gt;
      &lt;br /&gt;
      MessageBox.Show(str,&amp;quot;ComboBox Item&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void comboBox1_MeasureItem(object sender, System.Windows.Forms.MeasureItemEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      // For the comboBox with OwnerDrawVariable property&lt;br /&gt;
      // Display every second item with a height of 45&lt;br /&gt;
      if ( e.Index%2 == 0  )&lt;br /&gt;
      {&lt;br /&gt;
        e.ItemHeight = 45 ;&lt;br /&gt;
        e.ItemWidth = 20 ; &lt;br /&gt;
      }&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
        // Display all other items with a height of 25&lt;br /&gt;
        e.ItemHeight = 25 ;&lt;br /&gt;
        e.ItemWidth = 10 ; &lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;A href=&amp;quot;http://www.nfex.ru/Code/CSharpDownload/ComboBox.zip&amp;quot;&amp;gt;ComboBox.zip( 65 k)&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Selected item from ComboBox==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Select : Form {&lt;br /&gt;
  private Button draw = new Button();&lt;br /&gt;
  private ComboBox color = new ComboBox();&lt;br /&gt;
  public Select( ) {&lt;br /&gt;
    draw.Text = &amp;quot;Draw&amp;quot;;&lt;br /&gt;
    color.Text = &amp;quot;Choose a color&amp;quot;;&lt;br /&gt;
    Size = new Size(500,250);&lt;br /&gt;
    int w = 20;&lt;br /&gt;
    draw.Location = new Point(20,30);&lt;br /&gt;
    color.Location = new Point(w += 10 + color.Width, 30);&lt;br /&gt;
    color.Items.Add(&amp;quot;Red&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Green&amp;quot;);&lt;br /&gt;
    color.Items.Add(&amp;quot;Blue&amp;quot;);&lt;br /&gt;
    Controls.Add(draw);&lt;br /&gt;
    Controls.Add(color);&lt;br /&gt;
    draw.Click += new EventHandler(Draw_Click);&lt;br /&gt;
  } &lt;br /&gt;
  protected void Draw_Click(Object sender, EventArgs e) {&lt;br /&gt;
    if (color.SelectedItem.ToString() == &amp;quot;Red&amp;quot; )&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is red.&amp;quot;);&lt;br /&gt;
    else if (color.SelectedItem.ToString() == &amp;quot;Green&amp;quot;)&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is green.&amp;quot;);&lt;br /&gt;
    else&lt;br /&gt;
      Console.WriteLine(&amp;quot;It is blue.&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  static void Main() {&lt;br /&gt;
    Application.Run(new Select());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==WindowsXP controls==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
User Interfaces in C#: Windows Forms and Custom Controls&lt;br /&gt;
by Matthew MacDonald&lt;br /&gt;
Publisher: Apress&lt;br /&gt;
ISBN: 1590590457&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
namespace WindowsXP&lt;br /&gt;
{&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Summary description for WindowsXP.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    public class WindowsXP : System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
        internal System.Windows.Forms.HScrollBar HScrollBar1;&lt;br /&gt;
        internal System.Windows.Forms.ProgressBar ProgressBar1;&lt;br /&gt;
        internal System.Windows.Forms.TrackBar TrackBar1;&lt;br /&gt;
        internal System.Windows.Forms.ruboBox ComboBox1;&lt;br /&gt;
        internal System.Windows.Forms.RadioButton RadioButton1;&lt;br /&gt;
        internal System.Windows.Forms.CheckBox CheckBox1;&lt;br /&gt;
        internal System.Windows.Forms.Button Button1;&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Required designer variable.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        private System.ruponentModel.Container components = null;&lt;br /&gt;
        public WindowsXP()&lt;br /&gt;
        {&lt;br /&gt;
            //&lt;br /&gt;
            // Required for Windows Form Designer support&lt;br /&gt;
            //&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
            //&lt;br /&gt;
            // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
            //&lt;br /&gt;
        }&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Clean up any resources being used.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        protected override void Dispose( bool disposing )&lt;br /&gt;
        {&lt;br /&gt;
            if( disposing )&lt;br /&gt;
            {&lt;br /&gt;
                if (components != null) &lt;br /&gt;
                {&lt;br /&gt;
                    components.Dispose();&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            base.Dispose( disposing );&lt;br /&gt;
        }&lt;br /&gt;
        #region Windows Form Designer generated code&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Required method for Designer support - do not modify&lt;br /&gt;
        /// the contents of this method with the code editor.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        private void InitializeComponent()&lt;br /&gt;
        {&lt;br /&gt;
            this.HScrollBar1 = new System.Windows.Forms.HScrollBar();&lt;br /&gt;
            this.ProgressBar1 = new System.Windows.Forms.ProgressBar();&lt;br /&gt;
            this.TrackBar1 = new System.Windows.Forms.TrackBar();&lt;br /&gt;
            this.ruboBox1 = new System.Windows.Forms.ruboBox();&lt;br /&gt;
            this.RadioButton1 = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.CheckBox1 = new System.Windows.Forms.CheckBox();&lt;br /&gt;
            this.Button1 = new System.Windows.Forms.Button();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.TrackBar1)).BeginInit();&lt;br /&gt;
            this.SuspendLayout();&lt;br /&gt;
            // &lt;br /&gt;
            // HScrollBar1&lt;br /&gt;
            // &lt;br /&gt;
            this.HScrollBar1.Location = new System.Drawing.Point(24, 256);&lt;br /&gt;
            this.HScrollBar1.Name = &amp;quot;HScrollBar1&amp;quot;;&lt;br /&gt;
            this.HScrollBar1.Size = new System.Drawing.Size(240, 20);&lt;br /&gt;
            this.HScrollBar1.TabIndex = 15;&lt;br /&gt;
            // &lt;br /&gt;
            // ProgressBar1&lt;br /&gt;
            // &lt;br /&gt;
            this.ProgressBar1.Location = new System.Drawing.Point(24, 216);&lt;br /&gt;
            this.ProgressBar1.Name = &amp;quot;ProgressBar1&amp;quot;;&lt;br /&gt;
            this.ProgressBar1.Size = new System.Drawing.Size(128, 23);&lt;br /&gt;
            this.ProgressBar1.TabIndex = 14;&lt;br /&gt;
            this.ProgressBar1.Value = 30;&lt;br /&gt;
            // &lt;br /&gt;
            // TrackBar1&lt;br /&gt;
            // &lt;br /&gt;
            this.TrackBar1.Location = new System.Drawing.Point(16, 152);&lt;br /&gt;
            this.TrackBar1.Name = &amp;quot;TrackBar1&amp;quot;;&lt;br /&gt;
            this.TrackBar1.Size = new System.Drawing.Size(164, 45);&lt;br /&gt;
            this.TrackBar1.TabIndex = 13;&lt;br /&gt;
            // &lt;br /&gt;
            // ComboBox1&lt;br /&gt;
            // &lt;br /&gt;
            this.ruboBox1.Location = new System.Drawing.Point(24, 116);&lt;br /&gt;
            this.ruboBox1.Name = &amp;quot;ComboBox1&amp;quot;;&lt;br /&gt;
            this.ruboBox1.Size = new System.Drawing.Size(160, 21);&lt;br /&gt;
            this.ruboBox1.TabIndex = 12;&lt;br /&gt;
            this.ruboBox1.Text = &amp;quot;ComboBox1&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // RadioButton1&lt;br /&gt;
            // &lt;br /&gt;
            this.RadioButton1.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
            this.RadioButton1.Location = new System.Drawing.Point(24, 88);&lt;br /&gt;
            this.RadioButton1.Name = &amp;quot;RadioButton1&amp;quot;;&lt;br /&gt;
            this.RadioButton1.Size = new System.Drawing.Size(172, 16);&lt;br /&gt;
            this.RadioButton1.TabIndex = 11;&lt;br /&gt;
            this.RadioButton1.Text = &amp;quot;RadioButton1&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // CheckBox1&lt;br /&gt;
            // &lt;br /&gt;
            this.CheckBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
            this.CheckBox1.Location = new System.Drawing.Point(24, 56);&lt;br /&gt;
            this.CheckBox1.Name = &amp;quot;CheckBox1&amp;quot;;&lt;br /&gt;
            this.CheckBox1.Size = new System.Drawing.Size(160, 20);&lt;br /&gt;
            this.CheckBox1.TabIndex = 10;&lt;br /&gt;
            this.CheckBox1.Text = &amp;quot;CheckBox1&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // Button1&lt;br /&gt;
            // &lt;br /&gt;
            this.Button1.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
            this.Button1.Location = new System.Drawing.Point(24, 12);&lt;br /&gt;
            this.Button1.Name = &amp;quot;Button1&amp;quot;;&lt;br /&gt;
            this.Button1.Size = new System.Drawing.Size(104, 28);&lt;br /&gt;
            this.Button1.TabIndex = 9;&lt;br /&gt;
            this.Button1.Text = &amp;quot;Button1&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // WindowsXP&lt;br /&gt;
            // &lt;br /&gt;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
            this.ClientSize = new System.Drawing.Size(292, 298);&lt;br /&gt;
            this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                          this.HScrollBar1,&lt;br /&gt;
                                                                          this.ProgressBar1,&lt;br /&gt;
                                                                          this.TrackBar1,&lt;br /&gt;
                                                                          this.ruboBox1,&lt;br /&gt;
                                                                          this.RadioButton1,&lt;br /&gt;
                                                                          this.CheckBox1,&lt;br /&gt;
                                                                          this.Button1});&lt;br /&gt;
            this.Name = &amp;quot;WindowsXP&amp;quot;;&lt;br /&gt;
            this.Text = &amp;quot;Windows XP Controls&amp;quot;;&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.TrackBar1)).EndInit();&lt;br /&gt;
            this.ResumeLayout(false);&lt;br /&gt;
        }&lt;br /&gt;
        #endregion&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// The main entry point for the application.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        [STAThread]&lt;br /&gt;
        static void Main() &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new WindowsXP());&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>