i want them to multiply the value in the text box to the value in the constant when the user clicks on the menu item.
here is the code i have and some things i have tried:
const int a = 15; const int b = 50; int c = Convert.ToInt32(aTextBox.Text);
i have tried:
a * c;
a * aTextBox.Text;
im still new to C# so anything that isn't obvious escapes me
EDIT i ment a*c not a*b i changed it now
This post has been edited by lithomander: 01 April 2009 - 05:52 AM

New Topic/Question
Reply




MultiQuote



|