
C#
文章平均质量分 53
汐泽学园
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C#Winform获取机器码
搜索DeviceId。原创 2025-05-28 10:40:48 · 218 阅读 · 0 评论 -
CefSharp浏览器与网页端JS交互
1.安装CefSharp包可以使用NuGet安装CefSharp包,或者直接从网上下载然后添加到项目里面。2.引入命名空间using CefSharp;using CefSharp.WinForms;3.定义公共变量public ChromiumWebBrowser chromeBrowser;4.初始化浏览器//参数设置CefSettings settings = new CefSettings();settings.CefCommandLineArgs.Add("原创 2022-04-13 10:16:31 · 2274 阅读 · 0 评论 -
Windows桌面分享程序设计
一、设计思路各个客户端使用websocket进行连接,显示出当前连接的所有用户,控制端指定分享某个用户的桌面,分享端使用ffmpeg推流桌面画面到流媒体服务器,其他观看端集成VLCPlayer进行播放。二、搭建流媒体服务器使用SRS作为流媒体服务器,或者可以直接使用百度、阿里、腾讯等云服务。服务器 CentOS7SRS下载地址 https://github.com/ossrs/srs/releases/download/v4.0-b9/SRS-CentOS7-x86_64-4.0-b9.z原创 2022-03-15 12:55:27 · 4240 阅读 · 0 评论 -
人员轨迹监测系统设计
一、主机环境配置操作系统 Windows 7或者Windows Server 2008以上 建议配置 CPU:2核以上,内存:4G以上,硬盘:100G以上,网卡:100M以上 所需环境 .Net Framwork 4.0 二、安装网络摄像头网络摄像头与主机之间必须是连通的。安装完成后记录下摄像头的IP地址、登录账号和密码。必须使用Haikang的网络摄像头,测试用的摄像头型号为:DS-IPC-B12V2-I三、系统后台上传人脸照片,跟人原创 2022-02-21 12:12:32 · 1628 阅读 · 0 评论 -
C#对文本进行加密和解密
需要用到的命名空间:usingSystem.IO;usingSystem.Security.Cryptography;加密解密类定义:publicclassAuthcodeHelper{conststringKEY_64="HuidTeac";//注意了,是8个字符conststringIV_64="HuidTeac";...原创 2020-04-16 09:55:41 · 2561 阅读 · 2 评论 -
C#顺时针逆时针旋转图片
顺时针旋转图片this.pictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone);this.pictureBox1.Refresh();逆时针旋转图片this.pictureBox1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone);this.pictureB...原创 2020-04-15 23:30:11 · 1277 阅读 · 0 评论 -
C#双击图片全屏浏览
定义变量存储原始尺寸privateintorigin_width=0;privateintorigin_height=0;获取图片的原始尺寸this.origin_width=this.pictureBox1.Width;this.origin_height=this.pictureBox1.Height;关联双击事件this.pictur...原创 2020-04-15 23:29:21 · 1623 阅读 · 0 评论 -
VSTO安装卸载方法
由于VSTO不是普通的应用程序,安装和卸载需要使用专门的工具,那就是VSTOInstaller.exeVSTO安装工具文件路径C:\Program Files (x86)\Common Files\microsoft shared\VSTO\10.0\VSTOInstaller.exe使用说明VSTOInstaller.exe [[/install <URL>...原创 2020-04-15 23:22:01 · 4233 阅读 · 1 评论 -
Json之JArray的使用方法
从接口获取到的Json字符串[{"filesize":"183556","fileext":"jpg","filename":"\u591c\u665a\u7684\u5927\u697c","filepath":"\/userfiles\/spaceshow\/20190530\/ee85ddaea8b045934ddd074b9ba949cd.jpg"},{"filesize":"5152...原创 2020-04-15 23:17:52 · 8682 阅读 · 0 评论 -
DataGridView在多线程中出现大红叉
项目中做了一个多线程实现 DataGridView 动态刷新数据,但是在动态刷新数据N次之后,DataGridView 突然变成一个大红叉。处理的方法,重新封装 DataGridView 控件,重写 OnPaint 方法,代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem...原创 2020-04-15 23:11:38 · 2640 阅读 · 8 评论 -
C#计算两个时间相差多少天、时、分、秒
计算两个时间相差多少天、时、分、秒DateTimeDateTime1=Convert.ToDateTime("2020-03-2510:30:00");//开始时间DateTimeDateTime2=DateTime.Now;//当前时间TimeSpants1=newTimeSpan(DateTime1.Ticks);TimeSpants2=newTi...原创 2020-04-15 23:10:29 · 4440 阅读 · 0 评论 -
C#计算SHA1加密和base64编码
调用方法:Md5SHA1Helpermd5helper=newMd5SHA1Helper();stringfilepath=@"E:\Release\test.txt";stringsha1value=md5helper.SHA1File(filepath);stringbase64value=md5helper.EncodeBase64("utf-8",s...原创 2020-04-15 23:05:03 · 797 阅读 · 0 评论