完整版
2024-01-04 01:48:26 7.14MB MFC,VS2010
1
VS2010通过C#来控制PPT的控制,上一页,下一页的控制
2023-12-23 05:02:37 89KB VS2010 PPT
1
sqlite 数据库操作C# 工具类及使用实例 vs2010编写
2023-12-13 05:02:25 67KB C#  sqlite vs2010
1
VS2010 C++学习(2):BMP图像文件的结构分析、反色处理、平滑处理代码
2023-12-06 08:01:13 1.65MB VS2010 图像处理
1
VS2010 C++学习(1):滚动条的设计总结程序
2023-12-06 08:00:46 203KB VS2010
1
很清楚的解释了接口与抽象类,和类的组织结构。
2023-12-03 05:01:20 48KB 接口 抽象类
1
using System; using System.Runtime.InteropServices; using System.Reflection; using System.Windows.Forms; namespace KeyboardHook { public enum KeyboardEvents { KeyDown = 0x0100, KeyUp = 0x0101, SystemKeyDown = 0x0104, SystemKeyUp = 0x0105 } [StructLayout(LayoutKind.Sequential)] public struct KeyboardHookStruct { public int vkCode; //表示一个在1到254间的虚似键盘码 public int scanCode; //表示硬件扫描码 public int flags; public int time; public int dwExtraInfo; } public delegate void KeyboardEventHandler(KeyboardEvents keyEvent, System.Windows.Forms.Keys key); public class Hook { public event KeyboardEventHandler KeyboardEvent; public enum HookType { WH_JOURNALRECORD = 0, WH_JOURNALPLAYBACK = 1, WH_KEYBOARD = 2, WH_GETMESSAGE = 3, WH_CALLWNDPROC = 4, WH_CBT = 5, WH_SYSMSGFILTER = 6, WH_MOUSE = 7, WH_HARDWARE = 8, WH_DEBUG = 9, WH_SHELL = 10, WH_FOREGROUNDIDLE = 11, WH_CALLWNDPROCRET = 12, WH_KEYBOARD_LL = 13, WH_MOUSE_LL = 14, WH_MSGFILTER = -1, } public delegate IntPtr HookProc(int code, int wParam, IntPtr lParam); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr SetWindowsHookEx(HookType hookType, HookProc hook, IntPtr instance, int threadID); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr CallNextHookEx(IntPtr hookHandle, int code, int wParam, IntPtr lParam); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern bool UnhookWindowsHookEx(IntPtr hookHandle); private IntPtr instance; private IntPtr hookHandle; private int threadID; private HookProc hookProcEx; public Hook() { this.instance = Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]); this.threadID = 0; hookHandle = IntPtr.Zero; hookProcEx = new HookProc(hookProc); } public bool SetHook() { this.hookHandle = SetWindowsHookEx(HookType.WH_KEYBOARD_LL, hookProcEx, this.instance, this.threadID); return ((int)hookHandle != 0); } public IntPtr hookProc(int code, int wParam, IntPtr lParam) { if (code >= 0) { KeyboardEvents kEvent = (KeyboardEvents)wParam; if (kEvent != KeyboardEvents.KeyDown && kEvent != KeyboardEvents.KeyUp && kEvent != KeyboardEvents.SystemKeyDown && kEvent != KeyboardEvents.SystemKeyUp) { return CallNextHookEx(this.hookHandle, (int)HookType.WH_KEYBOARD_LL, wParam, lParam); } KeyboardHookStruct MyKey = new KeyboardHookStruct(); Type t = MyKey.GetType(); MyKey = (KeyboardHookStruct)Marshal.PtrToStructure(lParam, t); Keys keyData = (Keys)MyKey.vkCode; KeyboardEvent(kEvent, keyData); } return CallNextHookEx(this.hookHandle, (int)HookType.WH_KEYBOARD_LL, wParam, lParam); } public bool UnHook() { return Hook.UnhookWindowsHookEx(this.hookHandle); } } }
2023-11-30 05:06:49 70KB 键盘钩子
1
一个用来计时的C#程序,用于演讲时给予选手时间的提示。所用.net framework 4.0框架
2023-11-27 05:05:10 2.49MB
1
1.Excel2003、2007及2010格式的数据导入导出。 2.将Excel2003、2007及2010格式的数据报表导入到datagridview中预览 3.将datagridview中的数据导出为Excel2003、2007及2010格式的数据保存或查看。
2023-11-26 05:05:02 429KB Excel数据导出导入
1
1.支持对Excel2003、2007及Excel2010的数据导出及导入。 2.将Excel2003、2007及Excel2010格式的报表数据直接导入到datagridview中预览。 3.也可以将datagridview报表导出到Excel2003、2007及2010格式的Excel文件
2023-11-26 05:04:41 418KB Excel 数据导出 数据导入
1