I am trying to make a scroll bar that will convert the input from Celsius into Fahrenheit. I am having trouble with the maths for the conversion:
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
decimal x = 1.8m;
int y = 32;
int z = vScrollBar1.Value;
label2.Text = (z. * x + y);
label1.Text = vScrollBar1.Value.ToString();
}