in the button _ click event (double click the button to see code), you
write
try {
int num=Convert.toint32(textboxinput.text)
num=num+10; // or plus with else value ...
textboxoutput.text=num.tostring();
}
catch
{
MessageBox.show(" the data input is not in right format");
}
(E-Mail Removed) viết :
> Hello,
>
> Easy question from a newbie. I have text boxes which collect users
> input and on the click of a button do some calculations and output to
> another text box. I need to easily convert the numbers inputted to
> int's so I can do the calculations. Also I need to figure out how to
> pop up an error box if the charactors entered in those boxes are
> anything but numbers. Thanks in advance for helping someone trying to
> learn this robust language.