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