I work in windows form c# vs 2015
I have two combo box for country Arabic and county English
I need if user select value from combo box 1 select same value from combo box 2
my user permanent forget and select wrong country for combo box 2
my code as below :
var dataSourceAr = new List<Country>();
dataSourceAr.Add(new Country() { Name = "اختر دوله", Value = 0 });
dataSourceAr.Add(new Country() { Name = "الاردن", Value = 1 });
dataSourceAr.Add(new Country() { Name = "الإمارات", Value = 2 });
dataSourceAr.Add(new Country() { Name = "السعوديه", Value = 3 });
dataSourceAr.Add(new Country() { Name = "البحرين", Value = 4 });
dataSourceAr.Add(new Country() { Name = "تونس", Value = 5 });
this.comboBox2.DataSource = dataSourceAr;
this.comboBox2.DisplayMember = "Name";
this.comboBox2.ValueMember = "Value";
var dataSourceEn = new List<Country>();
dataSourceEn.Add(new Country() { Name = "SelectCountry", Value = 0 });
dataSourceEn.Add(new Country() { Name = "Jordon", Value = 1 });
dataSourceEn.Add(new Country() { Name = "Emarate", Value = 2 });
dataSourceEn.Add(new Country() { Name = "Saudia", Value = 3 });
dataSourceEn.Add(new Country() { Name = "Bahreen", Value = 4 });
dataSourceEn.Add(new Country() { Name = "Tunisi", Value = 5 });
comboBox1.DataSource = dataSourceEn;
comboBox1.DisplayMember = "Name";
comboBox1.ValueMember = "Value";
public class Country
{
public string Name { get; set; }
public int Value { get; set; }
}
so that i need if user select value 1 from combo box 1 automatic select value 1 from combo box 2
i need to force him to get same value in two combo box
IF HE select value 3 from com box 1 select value 3 from comb box 3
How to do that if possible ?
What I have tried:
How to make two combo box with same selected value