12 2011 档案

C# 一些自己需要知道的事情
摘要:[ThreadStaticAttribute] static int currId; double dValue = unchecked( (double)nValue)); Thread.Sleep和Timer性能比较 应该是Thread.Sleep比较好 http:/... 阅读全文

posted @ 2011-12-30 11:20 norsd 阅读(133) 评论(0) 推荐(0) 编辑

C# Form 点击关闭按钮 如何隐藏
摘要:void FormClosing(object sender, FormClosingEventArgs e) { this.WindowState = FormWindowState.Minimized; e.Cancel = tru... 阅读全文

posted @ 2011-12-15 19:58 norsd 阅读(233) 评论(0) 推荐(0) 编辑

C# 窗体处理自定义消息
摘要:protected override void DefWndProc(ref Message msg) { if (msg.Msg == 123456) { label1.Text = strStatu... 阅读全文

posted @ 2011-12-15 14:50 norsd 阅读(258) 评论(0) 推荐(0) 编辑

C# struct class 在Marshal.SizeOf 的区别
摘要:struct 和 class 的区别 最重要的就是 value 和 object 区别了. 但是最近发现另外一个有趣的现象,但是很重要. 一个工程中,因为需要各种结构,于是在开始使用了 struct , 但是觉得有点麻烦,值传递的话,消耗很多,又不喜欢 ref (因为我喜欢写泛型函数) 于是... 阅读全文

posted @ 2011-12-09 14:49 norsd 阅读(249) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示