Get CompanyName, ProductName and StartupPath from Application : Application « Development « C# / CSharp Tutorial






using System;
using System.Windows.Forms;

public class MainClass : System.Windows.Forms.Form
{
  public MainClass()
  {
    Console.WriteLine("Company: " + Application.CompanyName);
    Console.WriteLine("App Name: " + Application.ProductName);
    Console.WriteLine("I live here: "+ Application.StartupPath);

  }

  [STAThread]
  static void Main() 
  {
    Application.Run(new MainClass());
  }
}
Company: MainClass
App Name: MainClass
I live here: C:\Java_Dev\WEB\dev\CSharp








14.1.Application
14.1.1.Application Startup Path
14.1.2.Get CompanyName, ProductName and StartupPath from Application
14.1.3.Application Exit event
14.1.4.Application.AddMessageFilter
14.1.5.Working with Thread Exceptions