title: Inserting values into comboBoxes
body: <p>I want to use a comboBox in a form that allows users to select the pizza size.  I can fill in the comboBox with the strings "small", "Medium", "Large", etc., but I want to associate a price to each string.  So a "small" would be $7.99, medium would be 12.99 etc.  </p>
  
  <p>So how do I add a value to the string in each item? </p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  
  namespace fff
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
  
              InitializeComponent();
              comboBox1.Items.Add("Small");
              comboBox1.Items.Add("Medium");
              comboBox1.Items.Add("Large");
              comboBox1.Items.Add("Extra Large");
  
  
              comboBox2.Items.Add("East End location");
              comboBox2.Items.Add("West End location");
              comboBox2.Items.Add("South End location");
              comboBox2.Items.Add("Downtown location");
              comboBox2.Items.Add("North End location");
  
          }
  
          private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
          {
  
  
          }
  
          private void label2_Click(object sender, EventArgs e)
          {
  
          }
  
          private void label7_Click(object sender, EventArgs e)
          {
  
          }
  
          private void submit_btn_Click(object sender, EventArgs e)
  
          {
              if (comboBox1.SelectedIndex == 0)
                  MessageBox.Show(small);
  
          }
  
      }
  }
  </code></pre>