摘要: 可以切换代码编写时,使用Tab键自动补全,还是使用空格键自动补全。 切换方式: 1.快捷键 Ctrl+Alt+Space 2.编辑菜单 --> Intellisense --> 切换代码自动补全 阅读全文
posted @ 2020-03-06 13:48 forack 阅读(3825) 评论(0) 推荐(0) 编辑
摘要: 原地址:http://www.csharpwin.com/csharpspace/12773r5989.shtml 在嵌入式应用和一些安全软件中经常需要不通过物理键盘输入,虽然微软提供了也一个软键盘,但这个软件盘不能定制界面不能自动感应当前光标是否处于输入状态,所以有时候我们还是需要自己来实现这个软 阅读全文
posted @ 2020-01-10 01:38 forack 阅读(1505) 评论(0) 推荐(0) 编辑
摘要: 方法一: 1 private const int WS_EX_TOOLWINDOW = 0x00000080; 2 private const int WS_EX_NOACTIVATE = 0x08000000; 3 4 protected override CreateParams CreateP 阅读全文
posted @ 2020-01-10 01:29 forack 阅读(883) 评论(0) 推荐(0) 编辑
摘要: Public Class Form1 Private Sub Service_Synchr(ByVal index As Integer) ' 处理事件 End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArg... 阅读全文
posted @ 2019-05-22 17:58 forack 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-22 17:58 forack 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 1.进入对应svn目录下的.svn文件夹,并找到wc.db 2.用SQlite 数据库工具打开这个db文件 3.找到WC_LOCK表,并将里面的数据删除 阅读全文
posted @ 2019-05-22 17:54 forack 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 获取指定日期,在为一年中为第几周 3 /// 4 /// 指定时间 5 /// 返回第几周 6 private static int GetWeekOfYear(DateTime dtWeek) 7 { 8 System.Globalization.GregorianCalendar gc = new System.Globalization.Gr... 阅读全文
posted @ 2019-05-22 17:53 forack 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: string BoxCode = "X20171215090101"; DateTime t = DateTime.ParseExact(BoxCode.Substring(1, 14), "yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture).AddDays(-i); 阅读全文
posted @ 2019-05-22 17:52 forack 阅读(4976) 评论(0) 推荐(1) 编辑
摘要: 1 string text= System.Web.HttpUtility.UrlEncode("heart", System.Text.Encoding.UTF8); //UrlEncode编码 2 string data = System.Web.HttpUtility.UrlDecode(te 阅读全文
posted @ 2019-05-22 17:51 forack 阅读(16013) 评论(0) 推荐(3) 编辑
摘要: Newtonsoft.Json,一款.NET中开源的Json序列化和反序列化类库(下载地址http://json.codeplex.com/)。 下面是Json序列化和反序列化的简单封装: 补充Newtonsoft.Json用法 为进一步理解Newtonsoft,写了一些测试的例子: 使用Json帮 阅读全文
posted @ 2019-05-22 17:50 forack 阅读(1014) 评论(0) 推荐(0) 编辑