i think there are some programmers here so i am looking for a little bit of help.
i need to make a temp. converter in c# (using visual studio express 2010)
the form is : enter a value in a text box,
choose from what temp. to the other to convert using a "combo box"
for example from
Fahrenheit to Celsius. and when you press a "execute button" the conversion would display in another textbox
but i am having troubles doing it, my approach was
if (comboBox1.Text == "FAHRENHEIT A CELSIUS")
{
a =Convert.ToInt32( textbox1.Text);
c= (a - 32) / 1.8;
textbox2.Text = c.ToString();
}
but that is not working . i made a calculator using something like that.
if you guys can point me in the right direction it would be much appreciated
i need to make a temp. converter in c# (using visual studio express 2010)
the form is : enter a value in a text box,
choose from what temp. to the other to convert using a "combo box"
for example from
Fahrenheit to Celsius. and when you press a "execute button" the conversion would display in another textbox
but i am having troubles doing it, my approach was
if (comboBox1.Text == "FAHRENHEIT A CELSIUS")
{
a =Convert.ToInt32( textbox1.Text);
c= (a - 32) / 1.8;
textbox2.Text = c.ToString();
}
but that is not working . i made a calculator using something like that.
if you guys can point me in the right direction it would be much appreciated