string s1 = "GHGHGHJJH1238"; int x = Int32.Parse(s1.Substring(s1.Length - 4, 4)); MessageBox.Show(x.ToString());// show message or whatever you want
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)