Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using System.Windows.Forms;
  3.  
  4. namespace WindowsFormsApplication2
  5. {
  6.     internal static class Program
  7.     {
  8.         /// <summary>
  9.         /// The main entry point for the application.
  10.         /// </summary>
  11.         [STAThread]
  12.         private static void Main(String[] args)
  13.         {
  14.             try
  15.             {
  16.                 Application.EnableVisualStyles();
  17.                 Application.SetCompatibleTextRenderingDefault(false);
  18.  
  19.                 if (args != null && args.Length > 0)
  20.                     Application.Run(new Form1(args[0]));
  21.                 Application.Run(new Form1(" "));
  22.             }
  23.             catch (Exception ex)
  24.             {
  25.                 ex.ToString();
  26.             }
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement