how to display the files which is file1.filename exactly in a text1.text ?
i.e i want to display al the files which is in File1 in a text box
Regds
Sam F.
Printable View
how to display the files which is file1.filename exactly in a text1.text ?
i.e i want to display al the files which is in File1 in a text box
Regds
Sam F.
I'm not quite sure what you mean. If you want to concatenate a number of files together in a text box then simply use the code:
text1.text=text1.text & moretext
Text boxes are limited to 32k of data. If you want a WYSIWYG display then you may have to use the RichTextBox. Hope this helps.
Nick
text1.text = file1.filename
If you meant how to open the file selected by a FileListBox:
Code:Open Dir1 & File1.Filename for Input As #1
Text1.Text = Input(LOF(1), 1)
Close #1
VB Code:
Dim L As Long Dim s As String Private Sub Command1_Click() s = vbNullString For L = 0 To File1.ListCount - 1 s = s & File1.List(L) & vbCrLf Next Text1.Text = s End Sub