<NewDataSet> <Table> <abbr>BEF</abbr> <Description>Belgium Francs</Description> </Table> <Table> <abbr>DEM</abbr> <Description>Germany Deutsche Marks</Description> </Table> <Table> <abbr>ESP</abbr> <Description>Spain Pesetas</Description> </Table> <Table> <abbr>FRF</abbr> <Description>France Francs</Description> </Table> </NewDataSet>
Resources File
.
using LoadDataXML.Properties;
private void LoadCountry(ComboBox cbo) { cbo.DataSource = dsCountries.Tables[0]; cbo.DisplayMember = "Description"; cbo.ValueMember = "abbr"; }
private void Form1_Load(object sender, EventArgs e) { LoadCountry(comboBox1); }