Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i want to open all the text files with just one project file, for e.g i will just click only 1 project file and my application will have to open all txt (csv) files into their tabs according to there name...
i implemented all the functionality but i do have problem in applying this part...
any help will be appreciable...
Thanks.
Posted

1 solution

You do it with a loop. Get a list of all the files then go through the list opening each one and displaying it wherever you want. What's the problem?
 
Share this answer
 
Comments
Sami Ghouri 8-Apr-15 9:27am    
I never did this work ever, what my thinking was, like i save all the files path to one text file, and open it, loop through it and set them into their respective tabs,
but i am not sure if professionals do work like this...
2ndly i want to make file other than txt, for security purpose.
Kindly help me..
Thanks...
Richard MacCutchan 8-Apr-15 9:34am    
Why create a new file with all the paths? Why not just get the paths of the files you are interested in and open them into your tabs. And do you actually need all the files open at once? And if you want some other file types for security then you probably need to study Encryption/Decryption.
Sami Ghouri 8-Apr-15 9:39am    
Yes i do need because its client requirement, like he has 8 CSV Files which need to be shown at once in all 8 tabs available on form, but in the end what he wants is, just select one file which will load all the project at once.
for e.g when we click .SLN file, it loads all of our project in VS, so he wants the same.
Richard MacCutchan 8-Apr-15 9:48am    
Then you need to collect all the files into one folder. Then you can select that folder and list all the files inside it and then load them into your tabs. See https://msdn.microsoft.com/en-us/library/dd997370%28v=vs.110%29.aspx.

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