Hi there,
even in VB6 each form is already a class.
Knowing this, the solution is easy
Write a form handling the display of a single file.
Name could be frmDisplay.
Give the form some properties you need for initialization, e.g.
Dim mFilename As String
Public Property Set Filename(newValue As String)
mFilename = newValue
End Property
When clicking in the list box to display a file, create a new instance of your form class:
Dim newForm as frmDisplay
set newForm = New frmDisplay
'set custom properties
newForm.Filename = "C:\TEMP.TXT"
newForm.Show
Hope this helps...
|