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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.