How I can check if my string only contain numbers?
I don\'t remember. Something like isnumeric?
You con do like that:
public bool IsNumeric(string val) { if(int.TryParse(val)) return true; else if(double.TryParse(val)) return true; else if(float.TryParse(val)) return true; else return false; }