今天在做東東的時候,想美化下表單的表徵圖,不用Winform預設的,但是又不需要太複雜,只要表單和程式的表徵圖一樣就可以了,手工設定的低檔思路就不要考慮了,要做懶人就要懶到家,懶得徹底,所以花了點時間,琢磨了個基類來實現這個功能,你只需要讓你的視窗都從這個基類派生就可以了,注意:表徵圖的檔案名稱預設是logo.ico,使用的時候要把表徵圖作為資源嵌入到你的程式中。 1 public class BaseForm : Form 2 { 3 protected ov
WEB頁的中英文顯示解決方案之一: protected string EncodingCoverter(string text, int sourceCodePage, int targetCodePage) { // Gets the encoding for the specified code page. Encoding sourceEncoding = Encoding.GetEncoding(sourceCode
可以支援多種圖片格式:GraphicEx is open source under the Mozilla Public License (MPL). Please read the license agreement before you start using this library.TIFF images (*.tif; *.tiff), extended base line implementation byte orders: little endian, big
There are many times when you need to split a string into an array of strings by using a character as a separator. For example, a CSV ("comma" separated) file might have a line like "Zarko;Gajic;;DelphiGuide" and you want this line to be parsed into
這二天遇到一個問題,其錯誤資訊如下:Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable.Please hit the “Refresh” button in your web browser to retry your request. Administrator Note:An error
今天真是鬱悶,在寫一個監視MQ的程式時,老是無法串連上MQ。。。。剛開始出現錯誤的大致資訊如下:Unable to load dll(amqxcs2.dll)….暈了,這是啥DLL?查了下協助才知道原來這個就MQ用戶端安裝時的DLL。。。當時想到的就是目錄沒有許可權訪問,然後便開始為目錄加上許可權,再次運行。。。還是有錯誤,大致如下。。。Error in the application.TestCase
1. 在學習過程中參考了這篇文章:《NetTier模板產生的程式碼架構用法》(http://www.cnblogs.com/minwellptl/articles/481208.html)裡面有這樣一段例子:1.3.6. 關聯儲存深度儲存,可以同時儲存父物件和子集/*DeepSave helper method can help you to save an object and its children inone call.*/using Northwind.DataAccessLayer;