Visual Studio 基礎設置

  • 重置開發環境

菜單欄中選擇「工具」/「導入和導出設置」/「重置全部設置」編輯器

  •  設置行號

菜單欄中選擇「工具」/「選項」/「文本編輯器」/「行號」ide

  • 全屏顯示

 菜單欄中選擇「視圖」/「全屏顯示」工具

  • 爲程序設置版本和幫助信息

項目/properties /AssemblyInfo.cs 文件ui

 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 文件this

  //
        // 摘要:
        //     在特定的 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
相關文章
相關標籤/搜索