Terry,
As the others suggest, getting lines of code is going to be challenging, I
seriously question the usefulness of it in an about box.
Compile date & time would be useful, but I have not found a good method of
retrieving it. I've considered a custom attribute, however I'm not sure how
one would define said attribute, as one would need the value of the
attribute set at compile time. A pre-compile utility that initialized the
attribute value (ala the AssemblyVersion attribute) might be useful.
Generally I display a number of Assembly level attributes in my About Box,
including by not limited to:
Assembly.GetName().Name
Assembly.GetName().Version
AssemblyTitleAttribute.Title
AssemblyProductAttribute.Product ' product name
AssemblyInformationVersionAttribute.InformationalV ersion ' product
version
AssemblyConfigurationAttribute.Configuration ' Debug/Release
AssemblyFileVersionAttribute.Version
In fact I display the above info for all loaded assemblies in a grid (ala
the VS about box) to see version info for class libraries...
A VS 2005 version (it uses Generics) of my AboutBoxForm is available as part
of the of my Xml Export Example at:
http://www.tsbradley.net/Samples/VST...rt.Sample.aspx
I hope to have a VS 2003 version as a recipe at the above site later this
week...
--
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
|I would like to put program info in my applications' about screen such as
| compile date & time, lines of code, etc. Is there a way to do this
| automatically when I compile?
|
|