摘要: /// <summary> /// 删除文件夹 /// </summary> /// <param name="strPath">文件夹路径</param> /// <returns></returns> public static bool DelectDir(string strPath) { 阅读全文
posted @ 2023-02-15 17:17 fulllove 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 需先引用 itextsharp.dll //方法一 /// <summary> /// JPG转PDF /// </summary> /// <param name="jpgfile">图片路径</param> /// <param name="pdf">生成的PDF路径</param> /// < 阅读全文
posted @ 2023-02-15 17:14 fulllove 阅读(399) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { try { var base64 = this.richTextBox1.Text; base64 = base64.Replace("data:image/png;base64,", 阅读全文
posted @ 2023-02-15 17:10 fulllove 阅读(245) 评论(0) 推荐(0) 编辑
摘要: wpf需要在分屏上显示窗体代码: <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.micros 阅读全文
posted @ 2023-01-10 13:56 fulllove 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 方法一:Get请求: /// <summary> /// httpRequest /// </summary> /// <param name="url">http接口路径</param> /// <returns>将http接口信息进行返回</returns> public string http 阅读全文
posted @ 2023-01-06 14:53 fulllove 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 一、方法方法一(winform实现): 安装VLC media player3.0,然后将安装的plugins文件复制到项目根目录, 1、新建一个类(VlcPlayerBase.cs): using System; using System.Runtime.InteropServices; usin 阅读全文
posted @ 2023-01-05 17:10 fulllove 阅读(350) 评论(0) 推荐(0) 编辑
摘要: pdf转byte[]再转pdf文件进行保存 /// <summary> /// pdf转byte[]再转pdf文件进行保存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private vo 阅读全文
posted @ 2022-12-26 16:37 fulllove 阅读(2603) 评论(0) 推荐(0) 编辑
摘要: 项目需求获取某路径下为1开头文件夹,并替换最新文件夹内容,话不多说,上代码 private void Form1_Load(object sender, EventArgs e) { try { string str1 = Properties.Settings.Default.path;//此路径 阅读全文
posted @ 2022-09-15 16:29 fulllove 阅读(301) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 拷贝文件到另两个文件夹下 /// </summary> /// <param name="sourceName">新文件路径</param> /// <param name="folderPath">需替换的文件夹路径1</param> ///<param nam 阅读全文
posted @ 2022-09-07 11:51 fulllove 阅读(658) 评论(0) 推荐(0) 编辑
摘要: #region 方法一 Point first = this.Location; for (int i = 0; i < 50; i++) { Application.DoEvents(); Random ran = new Random(); Point p = new Point(this.Lo 阅读全文
posted @ 2022-09-02 14:09 fulllove 阅读(44) 评论(0) 推荐(0) 编辑