float m1; if (!float.TryParse(txtm1.Text, out m1)) { ... report input error to user ... return; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)