本文轉自http://www.codeproject.com/KB/miscctrl/customtext.aspx Label which can display text in any orientation and shape. Download source files - 11.2 KbDownload demo project - 19 Kb IntroductionThere are many ways in which text can be displayed. But
本文轉自http://www.codeproject.com/KB/miscctrl/Vertical_Label_Control.aspx A custom vertical label user control in C#.NET with support for transparent backgrounds. Download demo - 17.1 KBDownload source code - 7.76 KBIntroductionThis article describes
本文轉自http://www.codeproject.com/KB/buttons/VistaButton.aspx A Vista style button in .NET 1.1 Download demo project - 70.65 KB Download source files - 86.85 KB ContentsIntroduction Code Using the Code Future Development History IntroductionI have a
本文轉自http://www.codeproject.com/KB/miscctrl/signalstrengthcontrol.aspx Download source - 46.13 KB IntroductionThis is a relatively simple control that illustrates some of the techniques used in developing custom controls. We will look at the way we
剛剛在查看RSS的時候,在 c-sharpcorner中發現這樣一篇article,Find the First and Last Days of the Month with C#本來我是抱著研究一種數學演算法的心理準備去看這篇文檔的,卻發現不是我想要的結果。 其實,這個老外有點過了。如果你想學習一種實現方式,你可以去看看他如何使用減法來實現尋找一個月份中最早的一天和最後的一天的方式!但是,如果純粹是使用.NET的函數庫的話,下面的方式也許更加簡單。
Windows Service這一塊並不複雜,但是注意事項太多了,網上資料也很淩亂,偶爾自己寫也會丟三落四的。所以本文也就產生了,本文不會寫複雜的東西,完全以基礎應用的需求來寫,所以不會對Windows Service寫很深入。本文介紹了如何用C#建立、安裝、啟動、監控、卸載簡單的Windows Service 的內容步驟和注意事項。一、建立一個Windows Service1)建立Windows
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->string mailContent="郵件內容";MailMessage msg = new System.Net.Mail.MailMessage();msg.To.Add("******@gmail.com"); //收件者//寄件者資訊msg.From = new MailAddress("**
public static unsafe void GrayscaleImage(BitmapData sourceImage, IntPtr destBuffer) { int width = sourceImage.Width; int height = sourceImage.Height; // do the job var src = (byte*)
記錄一下自己學習筆記ATL Under the Hood - Part 1http://www.codeproject.com/KB/atl/atl_underthehood_.aspx 告訴對象的類存模型,包括繼承關係的類之間的記憶體模型View Code 1 #include <iostream> 2 using namespace std; 3 4 class Base { 5 public: 6 Base() {} 7 virtual void f1