I'm working on a program that asks for input, then calculates and posts the output.

I managed to do it on a console application, but I don't know how to store input from a textbox.

The input has to be positive integers, with an error message in place if anything invalid is input (to prevent crashing).

I plan to have use a button to trigger the calculation and output, but I need to know how to store the input first.