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 …… 阅读全文
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 …… 阅读全文
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 …… 阅读全文
#region /// /// 开机启动项 /// /// 是否启动 /// 启动值的名称 /// 启动程序的路径 Application.ExecutablePath public static void RunWhenStart(bool Started, strin …… 阅读全文
//读配置文件 方法(1) //ConfigurationManager.RefreshSection("appSettings"); //强制重新载入string settingValue = ConfigurationManager.AppSettings.Get("setting1"); //读配置文件 方法(2) Configuration config = Configurat …… 阅读全文
using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace BarCodeLibrary{ public class ZebraGesigner { [StructLayout(LayoutKi …… 阅读全文
//重启主程序 //System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); #region 读存app.config字段值 public static string GetConfigValue(string ap …… 阅读全文