C# WinForm下,隐藏主窗体,只在进程管理器中显示进程,在任务栏,状态栏都不显示窗体的方法

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac …… 阅读全文

C# 屏幕监控 自动截屏程序 主窗体隐藏,仅在进程中显示

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace Scree …… 阅读全文

c#设置软件开机自动运行,修改注册表

#region /// /// 开机启动项 /// /// 是否启动 /// 启动值的名称 /// 启动程序的路径 Application.ExecutablePath public static void RunWhenStart(bool Started, strin …… 阅读全文

WinForm 读写配置文件

//读配置文件 方法(1) //ConfigurationManager.RefreshSection("appSettings"); //强制重新载入string settingValue = ConfigurationManager.AppSettings.Get("setting1"); //读配置文件 方法(2) Configuration config = Configurat …… 阅读全文

C#直接发送打印机命令到打印机及ZPL常用打印命令 - 条码打印机

using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace BarCodeLibrary{ public class ZebraGesigner { [StructLayout(LayoutKi …… 阅读全文

Winform读写App.config文件以及重启程序

//重启主程序 //System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); #region 读存app.config字段值 public static string GetConfigValue(string ap …… 阅读全文