hello guys im having a little problem here.
I have few text boxes and few labels. User enters values into textboxex. Values in lables are from XML file, so the program reads for egz &amp;lt;price>30&amp;lt;/price> and this price is set as a label label1 => 30 And now im wondering how to multiply a value entered by user by the value of a label ( in this case 30, but can be any number)
thank you :)
int answer1 = 0; answer1 = (textboxnumber1/100)*label1 + textboxnumber2 + textboxnumber3 + textboxnumber4; total1.Text = answer1.ToString(); "Error 1 Operator '*' cannot be applied to operands of type 'int' and 'System.Windows.Forms.Label' c:\users\boss\documents\visual studio 2010\Projects\tabs\tabs\Form1.cs 103 23 tabs