title: c# ComboBox, save item with value and text
body: <p>I am trying to add an object ITEM with TEXT and VALUE to a ComboBox so I can read it later</p>
  
  <pre><code>public partial class Form1 : Form
  {
      ComboboxItem item;
      public Form1()
      {
          InitializeComponent();
  
          comboBox1.Items.Add(new ComboboxItem("Dormir", 12).Text);
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          ComboboxItem c = (ComboboxItem)comboBox1.SelectedItem;
          label1.Text = c.Text;
          label2.Text = c.Value.ToString();
      }
  }
  </code></pre>
  
  <p>The problem is, I cant add the full Item because isn't a string...and give an exception at beginning of click event</p>
  
  <hr>
  
  <p>Extra information:
  This ComboboxItem, its a class that I created with 2 parameters, string, and int</p>
  
  <pre><code>public class ComboboxItem
  {
      public string Text { get; set; }
      public object Value { get; set; }
  
      public ComboboxItem(string texto, double valor)
      {
          this.Text = texto;
          this.Value = valor;
      }
  }
  </code></pre>