NetBlog主题

Dictionary绑定到ComboBox显示值,实际值
WinForm技巧

Dictionary绑定到ComboBox显示值,实际值

2165 0

private void TestAndSetForm_Load(object sender, EventArgs e){Dictionary<string, string> dic = new Dictionary<string, string>();BindingSource bs = new BindingSource();dic["广东省"] = "http://mk.gd.soa.csg.cn";dic["云南省…

创建XML和XML读到Dictionary
C#基础

创建XML和XML读到Dictionary

1586 0

namespace ListBox和XML操作 {public partial class Form1 : Form{public Form1(){InitializeComponent();}Dictionary dic = new Dictionary();private void button1_Click(object sender, EventArgs e){AddData();foreach (Control c in thi…