C sharp two combo boxes


Source Code 

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;



namespace ComboBox

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

        private void Form1_Load(object sender, EventArgs e)

        {

            comboBox1.Items.Add("BATA");

            comboBox1.Items.Add("SERVICE");
         }



        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)

        {

               comboBox2.Items.Clear();

               if (comboBox1.SelectedItem == "BATA")

            {

                comboBox2.Items.Add("BATA MALE SHOES");

                comboBox2.Items.Add("BATA LADIES SHOES");

                comboBox2.Items.Add("BATA KIDS SHOES");

            }

            else if (comboBox1.SelectedItem == "SERVICE")

            {

                comboBox2.Items.Add("SERVICE LADIES SHOES");

                comboBox2.Items.Add("SERVICE MALE SHOES");

                comboBox2.Items.Add("SERVICE KIDS SHOES");

            }

        }

    }

}


Sending SMS Via Windows Form Application Using any Android Smart Phone  Source Code  using System ; using System . C...