Visual Studio 基础设置

  • 重置开发环境

菜单栏中选择“工具”/“导入和导出设置”/“重置所有设置”

  •  设置行号

菜单栏中选择“工具”/“选项”/“文本编辑器”/“行号”

  • 全屏显示

 菜单栏中选择“试图”/“全屏显示”

  • 为程序设置版本和帮助信息

项目/properties /AssemblyInfo.cs 文件

 1 // General Information about an assembly is controlled through the following
 2 // set of attributes. Change these attribute values to modify the information
 3 // associated with an assembly.
 4 [assembly: AssemblyTitle("Startup")]
 5 [assembly: AssemblyDescription("")]
 6 [assembly: AssemblyConfiguration("")]
 7 [assembly: AssemblyCompany("")]
 8 [assembly: AssemblyProduct("Startup")]
 9 [assembly: AssemblyCopyright("Copyright ©  2017")]
10 [assembly: AssemblyTrademark("")]
11 [assembly: AssemblyCulture("")]
12 
13 // Setting ComVisible to false makes the types in this assembly not visible
14 // to COM components.  If you need to access a type in this assembly from
15 // COM, set the ComVisible attribute to true on that type.
16 [assembly: ComVisible(false)]
17 
18 // The following GUID is for the ID of the typelib if this project is exposed to COM
19 [assembly: Guid("548f386c-8206-488b-9bf1-f3f002d0dbf1")]
20 
21 // Version information for an assembly consists of the following four values:
22 //
23 //      Major Version
24 //      Minor Version
25 //      Build Number
26 //      Revision
27 //
28 // You can specify all the values or you can default the Build and Revision Numbers
29 // by using the '*' as shown below:
30 // [assembly: AssemblyVersion("1.0.*")]
31 [assembly: AssemblyVersion("1.0.0.0")]
32 [assembly: AssemblyFileVersion("1.0.0.0")]
AssemblyInfo
  • 设置Windows应用程序启动窗体

在“解决方案资源管理器”面板中找到Program.cs 文件

  //
        // 摘要:
        //     在特定的 System.Windows.Forms.ApplicationContext 中,在当前线程上开始运行标准应用程序消息循环。
        //
        // 参数:
        //   context:
        //     一个 System.Windows.Forms.ApplicationContext,应用程序将在其中运行。
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     已在此线程上运行的主消息循环。
        public static void Run(ApplicationContext context);
        //
        // 摘要:
        //     在当前线程上开始运行标准应用程序消息循环,并使指定窗体可见。
        //
        // 参数:
        //   mainForm:
        //     一个 System.Windows.Forms.Form,它代表要使之可见的窗体。
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     已在当前线程上运行的主消息循环。
        public static void Run(Form mainForm);
        //
        // 摘要:
        //     在没有窗体的情况下,在当前线程上开始运行标准应用程序消息循环。
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     已在此线程上运行的主消息循环。
        public static void Run();
Run

猜你喜欢

转载自www.cnblogs.com/houxt/p/11248505.html