I am still quite new to VB.NET and I have a problem with setting up an application that will allow a user to select a txt file for the program to process. I have the basics, such as the program asking the user to browse and select a file and then having it write out the name of the file they have selected preceded by the path of its location.

Now from here, I need to be able to click on another button and have it utilize the selected file to process queries, such as a file of a list of hostnames. I am sure I will have to set up global variables but they have been confusing me a bit. I am sure as long as I can get one sub to recognize a variable in another sub, I will be fine.

can anyone help me with this? let me know if you need an snippet of code.


Aaron