Environment
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.
Compile-Time Settings
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 ...
Get Windows Forms Programming in Visual Basic .NET now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.