摘要: C#中输入法全角转换半角 一般情况下,我们都是使用英文半角的来进行编程,包括输入框和密码框的设定一般也是英文半角,但往往有些人使用全角输入,登陆不进去还以为你系统错误,现整理了几种全角切换半角和设定输入法的几种方法。 方法一:将用户输入的全角转化成半角 方法二:默认给用户一个输入状态 这里我是强制用 阅读全文
posted @ 2021-05-26 14:49 子昭 阅读(599) 评论(0) 推荐(0)
摘要: [System.Runtime.InteropServices.DllImport("user32.dll")] public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int wndproc); [System.Runtime 阅读全文
posted @ 2020-04-20 16:12 子昭 阅读(499) 评论(0) 推荐(0)
摘要: 首先是 委托实现的异步 class Program { public delegate int weituo();//定义了个委托 public int xxx() { Thread.Sleep(3000); Console.WriteLine("11111."); return 1; } ///定 阅读全文
posted @ 2019-01-08 17:39 子昭 阅读(783) 评论(0) 推荐(1)