Quote:
when textbox3 click event write a method for multipy the values
1. Double-click on TextBox3 to get to the Click event handler code.
2. In that event capture the information in the other two textboxes - your code in your comment is close but you need to use something like
double.TryParse[
^] (NB the link is for int.TryParse but the principles are the same for all datatypes that support the TryParse method)
3. Do your calculation
4. Put the results into TextBox3 - hint you will need the
ToString()
method, and you might want to
format the string[
^]
Other hints:
- do you really want to use
int
? (as per your comment). Your sample data does not use integers. You might need to limit the size of the numbers entered. Or choose another data type.