VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Simple way to populate a combo box by reading from a text file.

by Nagy (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 6th April 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Simple way to populate a combo box by reading from a text file.

Rate Simple way to populate a combo box by reading from a text file.




Private Sub Form_Load()

 Dim sline As String
  nfile = FreeFile
      Combo1.Clear
      Open "c:\nagy\nagy.txt" For Input As #nfile
   While Not EOF(1)
      Line Input #nfile, sline
      Combo1.AddItem sline
   Wend
End Sub

Download this snippet    Add to My Saved Code

Simple way to populate a combo box by reading from a text file. Comments

No comments have been posted about Simple way to populate a combo box by reading from a text file.. Why not be the first to post a comment about Simple way to populate a combo box by reading from a text file..

Post your comment

Subject:
Message:
0/1000 characters