Country dropdown c#

Country dropdown without list

Add reference
using System.Globalization;
Country combobox without list of country with NativeName and so more.
country.CurrencyEnglishName
            country.CurrencyNativeName              
            country.CurrencySymbol
            country.EnglishName
            country.GeoId
            country.ISOCurrencySymbol
            country.ThreeLetterISORegionName
            country.ThreeLetterWindowsRegionName
            country.TwoLetterISORegionName
Code :
private void PopulateCountryComboBox()
        {
            RegionInfo country = new RegionInfo(new CultureInfo("en-US", false).LCID);
            List countryNames = new List();
            foreach (CultureInfo cul in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
            {
                country = new RegionInfo(new CultureInfo(cul.Name, false).LCID);
                countryNames.Add(country.DisplayName.ToString());
            }

            IEnumerable nameAdded = countryNames.OrderBy(names => names).Distinct();

            foreach (string item in nameAdded)
            {
                comboBox1.Items.Add(item);

            }
        }
Country dropdown HTML

Country dropdown c# Country dropdown c# Reviewed by Bhaumik Patel on 7:36 PM Rating: 5