By using Reflection on the currently running assembly:-
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version
The Version property is a System.Version so you can get the major, minor etc
components separately from the appropriate properties, or just display the
entire version as a string.
Peter