I have this program that I have hundreds of radio buttons already on it, but I want to not have to change the code and recompile every time I want to add a new radio button.
For each radio button, I have several text boxes that are filled by set text files.
Code:
if (radioButton1.Checked == true)
{
System.IO.StreamReader myFile =
new System.IO.StreamReader("\\file.txt");
string steps = myFile.ReadToEnd();
textBox1.Text = steps;
myFile.Close();
textBox1.Text = steps;
}
This of course is just one out of many different radio buttons, and many different text boxes per radio button, each text would need its own .txt file also.
So I can create a file easily from within the program. But I am wondering how I would set a menu option for adding new radio buttons, so the program can be changed though the program itself. Without having to add code and and recompile. I don't want to ask if this can be done, because I know there is a deffinate way, I just do not know what it is I am looking for to figure out how to do this.
How is it I will add a new radio button from within the application, and update the executable without compiling again?