自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 Electron 打包(笔记)

Electron 打包(笔记)npm install electron-packager -gelectron-packager . --electronVersion=9.1.1后面的electronVersion必须带上,不然 报错

2020-07-27 18:02:59 125

原创 【WinForm】自己写一个截图软件 --设计思路

1.触发截图时,截取全屏图像,并设置置顶显示2.用户选取需要截图的界面3.根据用户选取的区域,创建新的窗口绘制图像,置顶4.关闭全屏图像

2019-01-21 10:44:58 625

原创 【WinForm】自己写一个截图软件6 --窗口3(最后的选择窗口)

这是截图软件的最终显示窗口,在第二步选择的画面会显示在这个窗口中 public partial class Select : Form { private bool canMove = false; private Point start; private bool small; private Size sizeRecor...

2019-01-21 10:40:19 140

原创 【WinForm】自己写一个截图软件5 --窗口2(全屏截图)

这个窗口在显示的时候会触发全屏截图,并且窗口设置成显示在所有的前面 public partial class TempScreen : Form { private Point mouseDown; private Point mouseUp; private bool canDraw; private Graphics g...

2019-01-21 10:09:41 305

原创 【WinForm】自己写一个截图软件4 --窗口1(主窗口)

这个窗口是软件的主窗口,会显示在任务栏中 public partial class Main : Form { private const int WM_HOTKEY = 0x312; //窗口消息-热键 private const int WM_CREATE = 0x1; //窗口消息-创建 private const int WM...

2019-01-21 10:05:19 213

原创 【WinForm】自己写一个截图软件3 --像素复制

public class ImageUtil { public static Bitmap GetBitmapFromImage(Bitmap source,Rectangle selectRectangle) { Bitmap bm = new Bitmap(selectRectangle.Size.Width, selectRectang...

2019-01-21 09:59:59 136

原创 【WinForm】自己写一个截图软件2 --保存路径管理

public class FileDialogUtil { private const string SavePath = "\\ScreenShot"; public static void SaveScreenShot(Image img,string name) { string path = Applicati...

2019-01-21 09:56:46 137

原创 【WinForm】自己写一个截图软件1 --注册全局热键

写在前面:软件创意是模仿,部分代码参考了网上的内容。【感谢】https://blog.csdn.net/cuoban/article/details/50750609【感谢】Setuna注册全局快捷键 /// <summary> /// 自定义热键 /// </summary> public class AppHotKey { ...

2019-01-21 09:54:51 280

原创 使用NPOI读写Excel实例

特别注意:如果使用FileStream 打开文件之后没有Close,有几率导致Excel损坏,使用using方式可以避免using System;using System.Collections.Generic;using System.IO;using NPOI.SS.UserModel;using NPOI.XSSF.UserModel; //如果读取xls引用NPOI.HSSF.U...

2019-01-11 12:09:03 484

原创 使用Newtonsoft.Json读写Json字符串

/// <summary> /// 处理层嵌套数据 /// 最大支持四层 /// </summary> public static List<string[]> GetDataForCommon(string data, int deepCount) { ...

2019-01-10 16:08:51 902

原创 Excel的读写示例

public static void ExportCommon(List<string[]> dataList,string excelPath,string[] itemName) { Application appli = new Application(); string path = excelPath.Substrin...

2019-01-10 16:06:41 129

原创 获取网页内容WebClient

/// <summary> /// 获取网页内容 /// </summary> /// <param name="url">网址</param> private static string GetHtmlString(strin

2019-01-08 11:26:37 622 1

原创 Http的Post请求实例

private static string HttpPostRequest(string url, byte[] bodyBytes) { HttpWebRequest request = null; try { request = (HttpWebRequest)WebReq...

2019-01-08 11:25:49 2355

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除