C# 局域网聊天 发送信息

//发送大量文本消息 private void sendMessage() { if (richTextBox_send.Text.Trim().Length==0 && richTextBox_send.Rtf.IndexOf("pict")<0) { MessageBox. …… 阅读全文

图文讲解VS2010程序打包操作 安装卸载

1、在vs2010选择“新建项目”----“其他项目类型”----“Visual Studio Installerà“安装项目”:命名为:Setup1。这是在VS2010中将有三个文件夹, 1.“应用程序文件夹”表示要安装的应用程序需要添加的文件;2.“用户的‘程序’菜单”表示:应用程序安装完,用户的“开始菜单”中的显示的内容,一般在这个文件夹中,需要 …… 阅读全文

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 …… 阅读全文