We will use it's capability in this blog to read the data from text file and load it directly into a combo box.
Code sample:
string[] theStates;
theStates=System.IO.File.ReadAllLines(txtFilename.Text);
cboStates.Items.AddRange(theStates);
A sample application is available here.

No comments:
Post a Comment