Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I have a file searching project in vb6.After searching the files are displayed in a listbox.When i click on one of the files from listbox,it should be selected and should be displayed in another textbox.This project doesnot refer to a database.Can anyone help me to do this???
Posted
Updated 27-May-13 1:04am
v2
Comments
[no name] 27-May-13 6:52am    
No, because you have not asked a question, described any kind of a problem or defined what kind of help you need.
Manfred Rudolf Bihy 27-May-13 7:34am    
What should be displayed in the textbox?
Is it the selected filename of the listbox or did you mean the content of the file that should get shown in that textbox.
The former is easy, but the latter can cause you some headaches if the selected file isn't a text file.

Regards,
Manfred
Member 10038995 27-May-13 10:29am    
The selected filename of the listbox should come in the textbox .
Richard MacCutchan 27-May-13 7:49am    
It's a simple matter to get the filename from the selected item, open the file, read its contents and display them in the textbox. Reading the documentation for the different components will be a good way to start.

1 solution

The Richtextbox control can be used to load and display normal text files without any formatting. It will not include any pictures , bullets etc..
Files like .txt, .doc can be used.

If there are picture files like jpeg, bmp, then the image or picture control can be used
 
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