原创 隨筆10 - C# WinForm下的只帶下邊框的TextBox
/// <summary> /// 只顯示下邊框的TextBox控件 /// </summary> public class BottomTextBox : TextBox { //
原创 隨筆5 - C#控制檯窗口的顯示與隱藏
1. 定義一個Consolse幫助類,如下: /// <summary> /// 控制檯幫助類 /// </summary> public static class ConsoleHelper {
原创 隨筆9 - C#下的線程與委託
描述:在線程執行結束後,通過委託來執行下一步的邏輯 C#代碼如下: /// <summary> /// 定義一個帶參數的委託 /// </summary> /// <par
原创 隨筆7 - 二進制序列化與反序列化
1. 定義一個可序列化的對象,如下 [Serializable()] public class Test { public string Key { get; set; } pub
原创 StdRegProv類所屬方法的使用(之三)
(04) GetBinaryValue 返回鍵值類型爲REG_BINARY的指定鍵值名稱的鍵值數值。 uint32 GetBinaryValue( [in, optional] uint32 hDefK
原创 隨筆 - Windows下的User32.dll部分函數一覽
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Drawing; using Syste