Ok here is my problem..here is a section of code in a program im trying to create -note this is my first program-
int firstlabel = 0;
double firsttextbox = 0;
double result = 0;
firstlabel = int.Parse(label1.Text);
firsttextbox = double.Parse(textBox1.Text);
result = firstlabel * firsttextbox;
label6.Text = result.ToString();
Now by looking at the code if
firstlabel = 400
and
firsttextbox = 50
the result would be 20,000
But what i am trying to do is make firsttextbox be a percent ie. i want the result to be 200 without the user haveing to input .50 in firsttextbox.
to clear it up a little if the user selected something and it displayed 400 in firstlabel then they inputed 50 in the first textbox i want it to do 400 * 50% and so far the only way i can get this done is by typing .50 in the firsttextbox.
Thanx for any help
int firstlabel = 0;
double firsttextbox = 0;
double result = 0;
firstlabel = int.Parse(label1.Text);
firsttextbox = double.Parse(textBox1.Text);
result = firstlabel * firsttextbox;
label6.Text = result.ToString();
Now by looking at the code if
firstlabel = 400
and
firsttextbox = 50
the result would be 20,000
But what i am trying to do is make firsttextbox be a percent ie. i want the result to be 200 without the user haveing to input .50 in firsttextbox.
to clear it up a little if the user selected something and it displayed 400 in firstlabel then they inputed 50 in the first textbox i want it to do 400 * 50% and so far the only way i can get this done is by typing .50 in the firsttextbox.
Thanx for any help