The class I created was striking similar to yours, but I tried to substitute the "text" you have here with variable names, and the names of the textboxes, and I got errors. I don't know how to get the data entered into a textbox into the class. thanks.