![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
iz-cn
这个作者很懒,什么都没留下…
展开
-
c# 跨线程修改控件
this.button.Dispatcher.Invoke(new Action(() => { button.Visibility = Visibility.Visible; }));原创 2018-03-15 11:45:20 · 390 阅读 · 2 评论 -
c# 获取屏幕物理宽高
调用:var w = new Getrelsize().Getsize();此方法主要用于应对系统屏幕缩放using System;using System.Collections.Generic;using System.Drawing;using System.Linq;using System.Runtime.InteropServices;using System.Text;u...原创 2018-03-16 18:38:06 · 1235 阅读 · 0 评论 -
wpf 引用winform的类
项目->引用->右击->添加引用:找到需要的类库,添加就可以using引用了:原创 2018-03-13 23:55:42 · 471 阅读 · 0 评论 -
c#全局钩子拦截键盘输入
// 安装钩子 [DllImport("user32.dll")] public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId); // 卸载钩子 [DllImport("use...转载 2018-03-14 00:01:48 · 1862 阅读 · 0 评论 -
c#全局热键
private void load(object sender, RoutedEventArgs e) { //System.Windows.MessageBox.Show("L:l");. IntPtr Handle = new WindowInteropHelper(this).Handle; //注册热键...原创 2018-03-14 00:11:27 · 1254 阅读 · 0 评论