c#

  • c# 调用CMD命令并获取输出结果

     private static string CMDPath = Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\cmd.exe"; public static void Run
    c# 3年前 488 0
  • c# winform程序读写ini配置文件

    重要: Debug 改成 Releaseusing System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.InteropServices;
    c# 3年前 460 0
  • Visual Studio快捷键收录

    注释多行:先按 Ctrl - K 组合键,再按 Ctrl - C 组合键取消注释多行:先按 Ctrl - K 组合键,再按 Ctrl - U 组合键
    c# 3年前 446 0
  • c# 获取计算机信息

    //判断系统位数是否是64位bool type = Environment.Is64BitOperatingSystem;获取 当前系统ProgramFiles的目录string ProgramFiles = System.Environment.GetEnvironmentVariable("ProgramFiles");MessageBox.Show("当前系统P
    c# 3年前 619 0
  • c# 执行cmd命令

    首先导入 Diagnosticsusing System.Diagnostics;具体执行代码            Process p = new Process();     
    c# 3年前 605 0
  • c# 99乘法表

                /*             99乘法表        &nb
    c# 3年前 560 0
  • c#占位符

                //Console.WriteLine("Hello World!");             /*
    c# 3年前 567 0
  • Visual Studio 快速注释

    先按 Ctrl - K 组合键,再按 Ctrl - C 组合键即可批量注释先按 Ctrl - K 组合键,再按 Ctrl - U 组合键即可取消注释
    c# 3年前 539 0
  • c# 如果有问题比如报错就跳过

            static void Main(string[] args)         {          
    c# 3年前 567 0
  • dll打包到exe程序里

    第一步: 程序包下载,部署完成后跑一遍第二步: bin\Debug 拷贝 到 vs 里选择项目右键粘贴.第三步: 删除引用下载的 的程序(我这里是json),资源管理器也卸载.第四步: 添加 引用 选择 目录里的dll第五步:  选中dll(Newtonsoft.Json.dll)右键 属性 把生成操作改成 嵌入的资源入口文件加入以下代码:    
    c# 3年前 509 0
<< 1 2 3 > >>