Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
What it means is that the string in the TextBox is not a valid integer - it may contain a decimal point, or an alphabetic character.Try using TryParse instead:int nActualQty;if (!int.TryParse(textBox5.Text, out nActualQty)) { // Report problem to user - he typed wrong. ... ...
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.