根据省份级联查询城市(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

posted @ 2012-03-29 01:57  ghypnus  阅读(2411)  评论(0编辑  收藏  举报