Actually that's it!
Just copy paste the above code(Now proprly cased and tested)
and call the CreateMyTextBoxes() whenever from wherever.
Have fun!