Rupert

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

导航

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

2013年1月31日

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

posted @ 2013-01-31 19:17 ArRan 阅读(523) 评论(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 阅读(323) 评论(0) 推荐(0)

摘要: Using System.Text;byte[ ] 转换为stringbyte[ ] image;string ll = Encoding.Default.GetString(image);string 转换为byte[ ]string ss;byte[] b = Encoding.Default.GetBytes(ss);数据库中image类型的字段的处理。首先我想从数据库中读出图片(以image类型存储的), 并且写入txt文件中:private void GetImage() { string conn = "Server=192.168.0.11; User id=user; 阅读全文

posted @ 2013-01-28 16:03 ArRan 阅读(201) 评论(0) 推荐(0)

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