2013年7月11日

ToolStripButton样式

摘要: public static class Extensions{ public static void SetMouseDownStyle(this ToolStripButton button) { button.ForeColor = Color.Yellow; } public static void SetMouseUpStyle(this ToolStripButton button) { button.ResetForeColor(); }} 阅读全文

posted @ 2013-07-11 08:48 yao2yao4 阅读(1861) 评论(0) 推荐(0) 编辑

C#指针与字节数组的操作

摘要: private static byte[] ReadBytesFromPtr(IntPtr intPtr, int bufferLength){ var result = new byte[bufferLength]; var count = bufferLength; for (var i = 0; i < bufferLength; i++) { result[i] = Marshal.ReadByte(intPtr, i); if (result[i] == 0) { count = i; ... 阅读全文

posted @ 2013-07-11 07:55 yao2yao4 阅读(4684) 评论(0) 推荐(0) 编辑

导航