![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#开发
文章平均质量分 78
zybpub
这个作者很懒,什么都没留下…
展开
-
CA410_SDK测试及读数软件
using CASDK2;using System;using System.Windows.Forms;/*将如下文件拷贝到程序目录下,添加引用CASDK2Net.dll,修改项目属性-目标平台为x64才能正常加载CASDK22018/09/21 14:16 1,691,120 CA200Srvr.dll2018/09/21 14:16 1,327,088 CASDK2.dll2018/09/18 11:33 108,164 CAS...原创 2022-05-18 18:11:25 · 2068 阅读 · 1 评论 -
IR_SC2红外线发射模拟器
using System;using System.Windows.Forms;namespace IR_SC2红外线发射模拟器{ public partial class Form1 : Form { System.IO.Ports.SerialPort sp_ir; byte[] data = new byte[6]; public Form1() { InitializeComponent(...原创 2022-05-17 18:07:28 · 1017 阅读 · 0 评论 -
Modbus三坐标移动模拟器
Form1.cs:using HslCommunication.LogNet;using HslCommunication.ModBus;using System;using System.Windows.Forms;using System.Timers;namespace Modbus模拟器{ public partial class Form1 : Form { public Form1() { Initiali...原创 2022-05-13 15:08:50 · 624 阅读 · 0 评论 -
CS_200色彩析仪模拟器
Form1.csusing System;using System.Drawing;using System.Timers;using System.Windows.Forms;namespace CS_200色彩析仪模拟器{ public partial class Form1 : Form { System.Timers.Timer timer_read_result; public Form1() { ...原创 2022-05-13 15:05:10 · 208 阅读 · 0 评论 -
使用CA410获取屏幕0~255灰阶下的亮度值,CASDK2、AutoResetEvent的使用,aspose.word表格生成
using Aspose.Words;using CASDK2;using System;using System.Threading;using System.Timers;using System.Windows.Forms;namespace Test_Automation{ public partial class Form_Gamma_CA410_SDK2net : Form { public Form_Gamma_CA410_SDK2net()...原创 2022-03-11 17:10:20 · 2334 阅读 · 1 评论 -
Astro VG876图像信号发生器控制软件
using System;using System.Windows.Forms;namespace VG876控制软件{ public partial class Form_VG876 : Form { public Form_VG876() { InitializeComponent(); } private void Form_VG876_Load(object sender, EventA...原创 2022-03-01 09:54:05 · 453 阅读 · 0 评论 -
Post Json数据到url接口
using System;using System.Windows.Forms;namespace api测试程序{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) {...原创 2022-02-24 09:41:20 · 1664 阅读 · 0 评论 -
asp.net一般处理程序处理接收json和发送json数据
<%@ WebHandler Language="C#" Class="zyb_api_json_handle" %>using System.Web;public class zyb_api_json_handle : IHttpHandler { public void ProcessRequest (HttpContext context) { string reply_type = "json"; //txt 或 json //接收...原创 2022-02-24 09:36:49 · 2018 阅读 · 0 评论 -
使用Graphics调整图片大小,用于替代GetThumbnailImage,解决GetThumbnailImage生成图片质量太差的问题。
private void button1_Click(object sender, EventArgs e) { Image img_source = Image.FromFile("c:/920.jpg"); int newWidth; int newHeight; //你自定义图的长宽如 newWidth=600; newHeight = 40...原创 2021-08-05 09:53:16 · 732 阅读 · 0 评论 -
我使用的 Zyb_Sql_Helper
/// <summary>/// Zyb_Sql_Helper 的摘要说明/// </summary>public class Zyb_Sql_Helper{ public Zyb_Sql_Helper() { // // TODO: 在此处添加构造函数逻辑 // } public static string ExecuteQuery2String(string sql) { ...原创 2021-03-30 10:57:39 · 124 阅读 · 1 评论 -
直流电源IT6800PC控制软件 专用类
using System;using System.IO.Ports;namespace Nathan_Soft{//直流电源IT6800PC控制软件 专用类 public class It6800_Command { public static string pc_remote = "AA 09 20 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D4"; public...原创 2020-12-03 10:00:50 · 314 阅读 · 0 评论 -
c# winform 自编简易浏览器
using System;using System.ComponentModel;using System.Data;using System.Windows.Forms;using System.Xml;namespace nathan_browser{ public partial class Form1 : Form { private DataSet ds = new DataSet(); public Form1() {...原创 2020-08-21 10:50:17 · 422 阅读 · 0 评论 -
委托方法使用示例delegate
using System;using System.Windows.Forms;namespace nathan_soft{ //定义一个委托类型,用来保存无参数,无返回值的方法。委托在命名空间中和类是一个级别的,相当于将方法定义成变量。 public delegate void Mydelegate(); public partial class Form_delegate : Form { public Form_delegate() ...原创 2020-08-05 13:52:27 · 477 阅读 · 0 评论 -
web一般处理程序调用模版页生成网页
<%@ WebHandler Language=“C#” Class=“default” %>using System;using System.Web;public class test : IHttpHandler {public void ProcessRequest (HttpContext context) { context.Response.Content...原创 2020-02-16 15:18:01 · 310 阅读 · 0 评论 -
新建文件并写入内容,如果文件已存在则覆盖。
private void btn_writesn2file_Click(object sender, EventArgs e) { //利用file类创建文件写入数据 using (StreamWriter sw = File.CreateText("d:\\sn.txt")) { ...原创 2020-02-11 11:36:20 · 1304 阅读 · 0 评论 -
字节数组转16进制字符串
/// <summary> /// 字节数组转16进制字符串 /// </summary> /// <param name="bytes"></param> /// <returns></returns> public s...原创 2020-02-11 11:06:02 · 282 阅读 · 0 评论 -
主线程执行顺序测试(本示例测试结果:按顺序执行)
using System;using System.Windows.Forms;namespace demo1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private ...原创 2020-02-11 10:33:55 · 94 阅读 · 0 评论 -
cs发送json到网站
private void btn_json_upload_Click(object sender, EventArgs e) { //整理将要提交的数据data System.IO.StringWriter sw = new System.IO.StringWriter(); using (Newtonso...原创 2019-12-16 19:37:03 · 154 阅读 · 0 评论