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:
Sub AboutBox_Load(sender As Object, e As EventArgs) Me.companyNameTextBox.Text = Application.CompanyName Me.productNameTextBox.Text = Application.ProductName Me.productVersionTextBox.Text = Application.ProductVersion End Sub
By default, these three values come from assemblywide AssemblyCompanyAttribute, AssemblyProductAttribute, and AssemblyVersionAttribute (provided in a wizard-generated ...