private void tbnRaknaMoms_Click(object sender, EventArgs e)
{
MessageBox.Show(ToPercentage().ToString());
}
public float ToPercentage()
{
float varde = float.Parse(tbxInput.Text);
float result = 100 * varde;
return result;
}
I want to make a method that counts the tax. When I run this I get an error :
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll.