Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Populating Combo Box From Text File (http://www.programmingforums.org/showthread.php?t=1516)

VbNewPerson Dec 12th, 2004 4:41 PM

Does anyone know how I can populate a combo box from a text file. If I had the following:-

one
two
three
four
five

How could I populate a combo box with this if they were stored for example in numbers.txt? I need to have a command button that when clicked brings up the screen for the user to select the text file and for it to default to A:\ where the txt file will be stored. Any help would be really appreciated.

cheers

Ooble Dec 12th, 2004 5:30 PM

Take a look at VB's native file-handling functions. Check out http://www.vbexplorer.com/VBExplorer/vb_fe...000/may2000.asp - it looks pretty good.


All times are GMT -5. The time now is 3:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC