public static void CheckVersionFormat() { try { var a = VERSION.Split(' '); var b = a[0].Split('.'); int t = Convert.ToInt32(b[0]); t = Convert.ToInt32(b[1]); } catch { System.Windows.Forms.MessageBox.Show("Invalid version format!"); Main.Close(); } }