Loading a comboBox from a text file in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Audie7734
    New Member
    • Jul 2008
    • 8

    Loading a comboBox from a text file in C#

    I have a comboBox in which a store individual's names. Upon loading the program, I want the comboBox loaded from a text file. Note: the first line of the txt file is: <Enter New Name>.
    I want to know first: How do I load the text file into the comboBox? Second, how do I maintain the first line if user enters a new name?
    VB.net was so easy, C# I can't get it to work.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    VB.NET and C# are essentially the same, because they use the same framework. All that differs is the syntax. The logic you used in VB.NET will still work. You just need to translate it.

    Comment

    Working...