public static void Main() { UserRegGUI test = new UserRegGUI(); Application.EnableVisualStyles(); Application.Run(new UserRegGUI()); }