I have created a program, and a extensive test of it, I\'m getting a error that says \"FormatException was unhandled, Input string was not in a correct format\". The problem
You could use int.TryParse, which returns a bool to indicate whether the text was parsed successfully:
int minsEntered = 0; if (int.TryParse(txtMins.Text, out minsEntered)) { // txtMins.Text is a valid integer. }