This documentation is archived and is not being maintained.

Application.CompanyName Property

Gets the company name associated with the application.

[Visual Basic]
Public Shared ReadOnly Property CompanyName As String
public static string CompanyName {get;}
public: __property static String* get_CompanyName();
public static function get CompanyName() : String;

Property Value

The company name.


[Visual Basic, C#, C++] The following example gets this property and displays its value in a text box. The example assumes that textBox1 has been placed on a form.

[Visual Basic] 
Private Sub PrintCompanyName()
   textBox1.Text = "The company name is: " & _
End Sub

private void PrintCompanyName() {
    textBox1.Text = "The company name is: " + Application.CompanyName;

   void PrintCompanyName() {
      textBox1->Text = S"The company name is: {0}", Application::CompanyName;

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Application Class | Application Members | System.Windows.Forms Namespace | ProductName | ProductVersion | AssemblyCompanyAttribute