Version _stdVersion = new Version(); this.Text = "TEST V" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Major.ToString() + "." + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Minor.ToString() + "." + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build.ToString() + " (Build " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString() + ")" ;
System.Reflection.Assembly _assembly = System.Reflection.Assembly.GetExecutingAssembly(); System.Diagnostics.FileVersionInfo _fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(_assembly.Location); string _fileVersion = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion; string _productVersion = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion; string _version = _fvi.FileVersion; this.Text = "Test V" + _version;