displaying tabular data from a text file

rbharris

Member
Joined
May 26, 2006
Messages
14
Programming Experience
Beginner
I'm not sure how to approach this and am hoping for advice.

I have an app that reads a text file (master file) and splits it into multiple files. The master file is actually multiple text files combined into one but the master is encrypted and has to be decrypted by the software that created it. So I first decrypt with a utility provided by the software and then my software comes in and re-separates the file back into individual files.
I then parse each file for variable values contained in each of the separated files and need to display each files values in a tabular format so that I can compare the individual values from each of the files. I could use a listview control but I'm not sure how because the master file could hold only one file or 20 files so the master is always variable in the amount of files that have been combined within it.

Here is an example of what the end result of what I'm trying to achieve would look like:

File1.txt File2.txt File3.txt
[value] [value] [value]
[value] [value] [value]
[value] [value] [value]
etc...

This way I would be able to compare file1.txt values to file2 and 3. Any advice?
 
You can create new controls dynamically - such as listboxes - based on how many files you want to show.

Here's a hint:
VB.NET:
        Dim lstBox As New ListBox
        Me.Controls.Add(lstBox)

It would be up to you to adjust their position of the new listboxes via your code etc etc. Shouldn't be too hard.
 
Neither ListView (difficult to populate these data) or ListBoxes (difficult to syncronize) will be easy to work with here, DataGridView will - properties Columns/Rows/Item is just about all you need make this happen.
 
Back
Top