03 2017 档案

摘要:[System.Runtime.InteropServices.DllImport("user32.dll")] static extern int PostMessageA(IntPtr h, int msg, int wp, int lp); void 文本_投递(IntPtr h,string str) { byte[] ... 阅读全文
posted @ 2017-03-25 14:15 c#菜鸟之行 阅读(2152) 评论(0) 推荐(0)
摘要:private void Form1_Load(object sender, EventArgs e) { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.BackColor = Color.Red; th 阅读全文
posted @ 2017-03-24 22:31 c#菜鸟之行 阅读(2336) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/andrew_wx/article/details/6628501 阅读全文
posted @ 2017-03-22 09:02 c#菜鸟之行 阅读(7387) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/Interkey/p/RunAsAdmin.html 阅读全文
posted @ 2017-03-20 14:10 c#菜鸟之行 阅读(512) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/hongmaju/p/3763385.html http://www.cnblogs.com/taixihuase/p/5605197.html 北京时间 阅读全文
posted @ 2017-03-20 11:28 c#菜鸟之行 阅读(1280) 评论(0) 推荐(0)
摘要:你知道图像的指针,如果知道图像大小,就可以用IntPtr img = (IntPtr) pics[ i ];byte[] data = new byte[picLength];Marshal.Copy(img, data, 0, data.length);using(MemoryStream ms  阅读全文
posted @ 2017-03-19 11:42 c#菜鸟之行 阅读(3388) 评论(0) 推荐(0)
摘要:特别是针对循环或timer处理中需要在窗体控件显示数据时,因后台处理过度繁忙而出现没刷新或者假死现象时,可以使用 Application.DoEvents(); Application.DoEvents()的作用 测试了一下,没有Application.DoEvents()的时候,Label基本处于 阅读全文
posted @ 2017-03-01 09:44 c#菜鸟之行 阅读(1747) 评论(0) 推荐(0)