Original Post
I would like to create a new instance of a class, but I would like the user to tell me the name of the object they want to create, and the code uses that (stored as a string) name and creates the object. This is done as a method. This is what I thought about, but it creates it called the name of the variable: public void createTextBox(string textBoxName) { // Create a new text box TextBox = textBoxName new TextBox; } P.S: Is this in the right forum? I put it here because it isn't game programming.