"d4" wrote:
I added a Text file to my Project (Add New Item Text File).
I've added a button so when a user clicks on it it will bring up the
text file to read, only problem is I cannot figure out how to call the
Text file to show? I'm sure its easy, but I don't see it. Thanks in
advance.
Every file (wav, jpg, txt, ico, etc.) that you add to your project is called
a resource. To access a resource, you can use code like this:
'Textfiles are treated as strings !
Dim myString As String
myString = My.Resources.TextFile_1
TextBox1.Text = myString
If you want know more about resources, please have a look at the
my.resources namespace or search MSDN for something like "Basic concepts of
resources" or "Working with resources".