摘要: 1 chart1.ChartAreas[0].AxisY.IsLogarithmic=true; 2 chart1.ChartAreas[0].AxisY.LogarithmBase=10; 3 chart1.ChartAreas[0].AxisY.Minimum=1E-16; 4 chart1.C 阅读全文
posted @ 2024-04-07 09:47 田宏伟_thw 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 一,将图片转换成Byte数组 byte[] photo; string path = Application.StartupPath + "\\ICMAXR060001_Station1_CH1_HT.jpg";//图片原路径 Image img = new Bitmap(path); Memory 阅读全文
posted @ 2023-01-31 14:44 田宏伟_thw 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: 1.缩放功能类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Windows.Forms; us 阅读全文
posted @ 2022-05-12 17:19 田宏伟_thw 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 为了美观,自己用Panel做了一个标题栏,如下图白色的上边栏,直接贴代码 /// <summary> /// 鼠标左键按下 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private vo 阅读全文
posted @ 2022-05-12 17:00 田宏伟_thw 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1 #include <algorithm> 2 using namespace std; 3 4 int a[6]={1,2,3,4,5,6} 5 int b=3; 6 int c=7; 7 8 if(find(a,a+sizeof(a)/sizeof(a[0]),b)!=a+sizeof(a)/ 阅读全文
posted @ 2022-03-02 11:48 田宏伟_thw 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 【2020版】Basic4Android安装配置指南_Kevin_WWWW的博客-CSDN博客_basic4android 阅读全文
posted @ 2021-11-23 23:50 田宏伟_thw 阅读(47) 评论(0) 推荐(0) 编辑
摘要: C#中JSON的序列化和反序列化取值示例 1.首先需要引用Newtonsoft.Json.dll文件(代码引用using Newtonsoft.Json和using Newtonsoft.Json.Linq;) 2.定义两个类PerSon和_Name,代码如下:(如何创建多个根节点的JSON字符串可 阅读全文
posted @ 2021-09-10 14:14 田宏伟_thw 阅读(725) 评论(0) 推荐(0) 编辑
摘要: TCP/IP以及Socket聊天室带类库源码分享 最近遇到个设备,需要去和客户的软件做一个网络通信交互,一般的我们的上位机都是作为客户端来和设备通信的,这次要作为服务端来监听客户端,在这个背景下,我查阅了一些大佬们的博客,和一些资料。将这些汇总做了一个简单的服务端监听和客户端的类库,希望对大家有一定 阅读全文
posted @ 2021-09-03 17:38 田宏伟_thw 阅读(440) 评论(0) 推荐(0) 编辑
摘要: Panel控件添加边框颜色 C# WinForm窗体控件Panel修改边框颜色以及边框宽度方法 - JiYF - 博客园 (cnblogs.com) 1.新建一个用户控件的项目,如下: 2.添加一个Panel容器到用户控件中,Panel属性Dock设置为全填充Fill,背景色设置为白色 3.给这个用 阅读全文
posted @ 2021-08-18 13:06 田宏伟_thw 阅读(3885) 评论(0) 推荐(1) 编辑
摘要: Demo窗体图片,Form1 Demo窗体图片,Form2 公共委托 using System; namespace _DeleFrm{ public class Dele { public static Action<string> SendDele; }} form1窗体代码 using Sys 阅读全文
posted @ 2021-08-17 01:43 田宏伟_thw 阅读(159) 评论(2) 推荐(0) 编辑