Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Application.CompanyName Property

Gets the company name associated with the application.

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

Property Value

The company name.

Example

[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: " & _
      Application.CompanyName
End Sub
  

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

[C++] 
private:
   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.

Requirements

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

Show:
© 2015 Microsoft