I can't get the string of text_box.text to convert to an int then compare to another int. 
I also need to check to see if the string of text_box.text can be turned into an int.  
I've tried .ToInt32, which I have always used and it has been fine. I have no idea how to test if the string of text_box can be turned into an int. 
public static void before (int bS)
{
    beforeScore = bS;
}
//some space later
if (score_bet_text_box.Text.ToInt32() > beforeScore)
{
    MessageBox.Show("You can't bet more than you have", "game");
}
I expect it to convert the string of text_box into an int, then compare it to the other int. 
I also hope to test if it can be converted into an int, but have no clue how so it is not shown in the code above.
 
     
    