This is probably easy for you guys, but i can't work out how i would display all the files of a directory in a rich text box - I just want it to find the files in it and display them in a text box like:
Plugin1.Txt
Plugin2.Txt
Plugin3.Txt
Dim GetFiles As String
GetFiles = System.IO.Directory.GetFiles("C:/Generic/Plugins/")
I started with that. There wasn't any errors. So now i used a function.
Function WriteToWindow(ByVal var)
My.Forms.Form1.RichTextBox1.AppendText(var & vbCrLf)
End Function
That wouldn't work - As the files seem to be an array or something i haven't learnt yet. What do i do?
Plugin1.Txt
Plugin2.Txt
Plugin3.Txt
Dim GetFiles As String
GetFiles = System.IO.Directory.GetFiles("C:/Generic/Plugins/")
I started with that. There wasn't any errors. So now i used a function.
Function WriteToWindow(ByVal var)
My.Forms.Form1.RichTextBox1.AppendText(var & vbCrLf)
End Function
That wouldn't work - As the files seem to be an array or something i haven't learnt yet. What do i do?