Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i open a text file which is called "engilsh.dic" by clicking a button into a listbox. name and text remain unchanged?
Posted
Updated 21-Mar-10 17:59pm
v2

Not sure I understand your question.

If you mean you want to display contents of a text file in a list box,
You need to parse your file and then popuplate the list box with relevant data.
 
Share this answer
 
You should buy a book and read it. You should also think about how you post 'I'm using VB 2005 is not a subject. Reading a text file is perhaps a valid subject for this question.

System.IO.File will give you access to reading files. The rest of your question is pretty much nonsensical. Open it how ? To put the contents into a listbox ? Then you need to read them, File.ReadAllLines will give you a valid datasource for a listbox if you just want to show the lines in the file. Name and text of what/from what ? What are you talking about ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900