August 2003
Intermediate to advanced
736 pages
14h 48m
English
During its lifetime, an application runs in a certain environment. The environment is provided by a combination of compile-time and run-time settings supplied by .NET and Windows.
The Application class exposes several properties that provide the company name, product name, and product version of the currently running application:
void AboutBox_Load(object sender, EventArgs e) {
this.companyNameTextBox.Text = Application.CompanyName;
this.productNameTextBox.Text = Application.ProductName;
this.productVersionTextBox.Text = Application.ProductVersion;
}
By default, these three values come from assemblywide AssemblyCompanyAttribute, AssemblyProductAttribute, and AssemblyVersionAttribute (provided in a wizard-generated ...
Read now
Unlock full access