根据省份级联查询城市(WinForm)

声明:转载请注明出处:http://www.cnblogs.com/ghypnus
1.添加引用,选择ProvinceCity.dll
2.using ProvinceCity;

        private void Form1_Load(object sender, EventArgs e)
{
//绑定省份
ProvinceCity.ProvinceCity.BindProvince(comboBox1);
}

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
//绑定城市
ProvinceCity.ProvinceCity.BindCity(comboBox1, comboBox2);
}

下载地址:https://files.cnblogs.com/ghypnus/ProvinceCity.rar

code in my life.
原文地址:https://www.cnblogs.com/ghypnus/p/2422564.html