Rupert

::Me(C#,VC,MonoTouch,MonoforAndroid);

导航

上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 108 下一页

2013年1月31日

摘要: 说明:str.ToString("x") : 转为1位16进制小写str.ToString("X") : 转为1位16进制大写str.ToString("X2"):转为2位16进制大写publicstaticstring StringToUnicode16(string text, string prefixalChar, string splitChar) { var sb =new StringBuilder(); if (string.IsNullOrEmpty(text)) { returnstring.Empty; ... 阅读全文

posted @ 2013-01-31 19:17 ArRan 阅读(255) 评论(0) 推荐(0) 编辑

摘要: 前段时间遇到跨线程调用窗体控件的问题,其实一句话System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;就可以解决,但感觉会有不稳定因素,因此在网上找了一些相应的文章感觉还不错,第一种用的比较顺手:(注:在devexpress控件中用DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;) 用户不喜欢反应慢的程序。在执行耗时较长的操作时,使用多线程是明智之举,它可以提高程序 UI 的响应速度,使得一切运行显得 阅读全文

posted @ 2013-01-31 19:17 ArRan 阅读(474) 评论(0) 推荐(0) 编辑

2013年1月28日

摘要: 合并字节数组public static byte[] CombineByteArray(byte[][] byteArra) { System.IO.MemoryStream aMS = new System.IO.MemoryStream(); byte[] tempBA ; for (int i = 0; i < byteArra.Length; i++) { tempBA = byteArra[i]; aMS.Write(tempBA, 0, tempBA.Length); } return aMS.ToArray(); }//字节数组截取 32位public unsafe sta 阅读全文

posted @ 2013-01-28 16:10 ArRan 阅读(308) 评论(0) 推荐(0) 编辑

上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 108 下一页