摘要: 如果使用的是x86的运行方式,直接调用PrScrn.dll接口即可,siukwan/screenshot: 通过调用微信的截图dll库文件,实现微信截图功能 (github.com) 如果主程序是AnyCPU或者x64的运行方式,据我所知有下面几种方案: 1、封装成COM组件的方式太麻烦,抛弃(这个 阅读全文
posted @ 2021-05-25 12:24 danch 阅读(1885) 评论(1) 推荐(0) 编辑
摘要: 本人将网上的文件夹选择框的功能汇总了一下,具体自己见代码 using Microsoft.WindowsAPICodePack.Dialogs; using Microsoft.WindowsAPICodePack.Dialogs.Controls; using System; using Syst 阅读全文
posted @ 2020-10-27 20:26 danch 阅读(1992) 评论(0) 推荐(1) 编辑
摘要: 一:前言 1、DevExpress是 Developer Express的缩写,DevExpress是一家全球知名的控件开发公司。DevExpress 也特指此公司出品的控件集合或某系列控件或其中某控件。 Dev 15.1版本17年更新到15.1.13后就没更新了,直到19年又更新到15.1.14了 阅读全文
posted @ 2019-03-01 17:35 danch 阅读(1501) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace MoveFormOfNoneBorderStyle{ public partial class Form1 : Form { [DllImport("user32.... 阅读全文
posted @ 2011-10-31 11:10 danch 阅读(662) 评论(0) 推荐(0) 编辑
摘要: SQL时间格式转换:年月日SELECT CONVERT(varchar, GETDATE(), 102) AS DateTime--2011.07.12SELECT CONVERT(varchar, GETDATE(), 111) AS DateTime--2011/07/12SELECT CONVERT(varchar(10), GETDATE(), 120) AS DateTime--2011-07-12SELECT CONVERT(varchar, GETDATE(), 112) AS DateTime--20110712SELECT CONVERT(varchar, GETDATE() 阅读全文
posted @ 2011-07-12 16:50 danch 阅读(841) 评论(0) 推荐(1) 编辑
摘要: 开发环境:WinXP SP3,VS2008,SQL2000TreeView控件与SQL数据库的应用(遍历算法)(数据与TreeView的绑定及Treeview的增加、删除、修改、遍历等数据库的操作)这个是数据库连接及一些操作数据库的方法,文件:SqlManager.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Data;using System.Windows.Forms;namespace 阅读全文
posted @ 2011-03-24 14:21 danch 阅读(1629) 评论(32) 推荐(4) 编辑