C# Checking number range not working :      private bool DataValidation(string Checker)
            {
    
    
                int i;
                if (Int32.TryParse(Checker, out i))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
    
            private void NumberChecker()
            {
                if (int.Parse(txtRank.Text) >= 0 || int.Parse(txtRank.Text) <= 50)
                {
    
                    errorProvider1.SetError(txtRank, string.Empty);
                    errorProvider1.Clear();
                   
                }
    
                else
                {
                    errorProvider1.SetError(txtRank, "Between 1 and 50 please!");
                    
    
                }
            }
    
    
            private void txtRank_Validating(object sender, CancelEventArgs e)
            {
                if (DataValidation(txtRank.Text) == false)
                {
                    errorProvider1.SetError(txtRank, "Must be numeric!");
    
                }
    
                else
                {
    
                    errorProvider1.SetError(txtRank, string.Empty);
                    errorProvider1.Clear();
                }
    
                NumberChecker();
    
    
    
    
    
            }

I've been trying to get this to work for about 4 hours, can someone please tell me why it keeps saying "String in the wrong format" I've tried all of this inside the the validation event, nothing I do is working. I am not understanding why.
