随笔分类 -  开发记录

摘要:可以切换代码编写时,使用Tab键自动补全,还是使用空格键自动补全。 切换方式: 1.快捷键 Ctrl+Alt+Space 2.编辑菜单 --> Intellisense --> 切换代码自动补全 阅读全文
posted @ 2020-03-06 13:48 forack
摘要:原地址:http://www.csharpwin.com/csharpspace/12773r5989.shtml 在嵌入式应用和一些安全软件中经常需要不通过物理键盘输入,虽然微软提供了也一个软键盘,但这个软件盘不能定制界面不能自动感应当前光标是否处于输入状态,所以有时候我们还是需要自己来实现这个软 阅读全文
posted @ 2020-01-10 01:38 forack
摘要:方法一: 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
摘要: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
摘要:1.进入对应svn目录下的.svn文件夹,并找到wc.db 2.用SQlite 数据库工具打开这个db文件 3.找到WC_LOCK表,并将里面的数据删除 阅读全文
posted @ 2019-05-22 17:54 forack
摘要: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
摘要: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
摘要: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
摘要:C#与PHP 共用可逆加密算法 密钥使用MD5加密、 PHP 代码 C# 代码 阅读全文
posted @ 2019-05-22 17:48 forack