Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
listbox
View previous topic :: View next topic  
Author Message
sunil21
Newbie


Joined: 23 Dec 2003
Posts: 8

PostPosted: Dec 24th, 2003 01:06 AM    Post subject: listbox Reply with quote

how can i load a textfile in a list box
Back to top
View user's profile Send private message Send e-mail
Andir
Centurion


Joined: 21 Dec 2003
Posts: 184
Location: Chicago Area

PostPosted: Dec 24th, 2003 01:22 AM    Post subject: Reply with quote

One line per List item I'm assuming?

Code:

intFile = FreeFile ()
Open "path\Filename" for input as #intFile
Do
   Line Input #intFile, indata
   List1.AddItem indata
Loop Until EOF(intFile)
Close #intFile

_________________
If you happen to see little people sitting on your desk...don't tell anyone or they might think your crazy too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic