So here's the short of it.

I made a program that allows users to call a program based on a code they set.
I have 2 input textbox types.

textbox2 is for the code they wish to assign to the program.
textbox3 is the path to the file

When they type in type in textbox1 and hit enter, it calls the program to run if it matches textbox2 value.

I have searched high and low and have not been able to find a definitive answer to what I am looking for.

I want the user to have an unlimited amount of programs they can launch so I need a database of sorts. I want to set it up so that when a user types in the new code in textbox2 and the corresponding directory relation in textbox3, it will save it to a file for my program to access and use as a database whenever they open my program.

Right now, I have 40 text boxes on the code/program form. This only gives the user the ability to store up to 20 codes of their own. I am using My.Settings to store this information, but it just doesn't seem to give me the ability to "add on the fly". Meaning I have to physically designate each text box it's My.Settings relation.

The code is then executed after a match between textbox1 and textbox2.

My code is set up like this:
If Me.textbox1.text = My.Settings.Settings1 then call My.Settings.Settings2

and so on.

This makes for a very big file if I were to expand it, not to mention more textboxes than Windows Vista has total!

I need an efficient and effective way to store this information after hitting save on form2, it will append the user input to a file. And when the form1 loads it will load the xml (lets say for example) and the user types in a code then the program will search through the loaded XML file if that command exists and if it does then to call the corresponding program attached to it.

I have been racking my brains on this. Burning up Google and skimmed through my entire VB.NET 2008 book to no avail.

One other thing. I don't even know if this warrants mentioning since I get the gist of the file system, but this file (XML file) will be located in only one spot (Documents) on the users HD.

Any help would be GLADLY appreciated!

Thanks for your time!