[C#][VB.NET]Play Media with AxMediaPlayer

加入工具箱 **Step1.**工具箱=>滑鼠右鍵=>選擇項目 ...

February 28, 2009 · Larry Nung

[.NET Concept][C#][VB.NET]Banker's Rounding (Round Half to Even)

一般舊的程式語言在當把浮點數轉成整數時,通常會採用『四捨五入』的方式去做轉換的動作。顧名思義,就是當小數位數小於5的話則捨棄小數(四捨)、大於或等於5的話則進位(五入)。而這種年代久遠的處理方式其實存在著一個問題,就是其實它是不公平的,因為它進位的機率高於捨棄(見下圖),在統計學上會產生偏差。 ...

February 22, 2009 · Larry Nung

[C#][VB.NET]Odd Behavior Caused by GC.Collect()

Abstract Introduction Example Conclusion Download Introduction 前一陣子在用同事程式時,總覺得速度有點慢,但卻不知道問題出在哪個同事的Code,因此針對底層同事的程式做了效率上面的測試。測試的結果是,當拿同事的類別來用時,若只建立並使用一次,則其效能不差。但若用迴圈去建立並使用多次時,其效能就變的十分的低落。 ...

January 30, 2009 · Larry Nung

[C#][VB.NET]XML-Serializing Private Fields

假設今天有個Person的類別如下。除了名字、年齡、性別外,內含_friends清單用以提供IsFriend與AddFriend函式所須用到的朋友清單資料。 ...

November 29, 2008 · Larry Nung

[C#][VB.NET]Building Desktop Gadgets

Abstract Introduction 自製桌面小玩意 Conclusion Introduction 本篇將由一個簡單的小範例,試範如何利用.NET自製類似widget的桌面小玩意。 ...

November 15, 2008 · Larry Nung

[C#][VB.NET]Custom .NET WinForm UI

Abstract Introduction 自定義WindowForm表單介面 Conclusion Introduction 本篇將由一個簡單的小範例,試範如何實現自定義的WindowForm表單介面。 ...

November 11, 2008 · Larry Nung

[C#][VB.NET]Creating a Transparent .NET Form

Abstract Introduction Form.Opacity屬性設定不透明度 Form.TransparencyKey屬性設定透明的顏色 Form.Opacity VS Form.TransparencyKey Conclusion Introduction 在.NET WinForm程式中,要設定透明表單有兩種方式。一種是用Form.Opacity屬性來設定表單的不透明度,一種則是用Form.TransparencyKey屬性來設定表單上視為透明的顏色。本篇將會對兩種方法做個簡單的介紹,並針對兩者做點小小的比較。 ...

November 10, 2008 · Larry Nung

[C#][VB.NET]Working with .NET Shortcuts

Abstract Component ShortCut Type Control Method Text Edit Control Method Windows Script Host Method Control Method Shell.Application Control Method Reference Download Component 一般來說,ShortCut主要是由下面幾個元素所構成: ...

November 2, 2008 · Larry Nung