Time of Update: 2017-02-28
來源:http://blog.csdn.net/kuzhuxuan/archive/2006/05/30/763300.aspx using System;namespace BQ.Terminal.Gateway{ /// <summary> /// 訊息CRC校正演算法 /// </summary> public class CRC { //private int key = 0x110
Time of Update: 2017-02-28
using System;using System.Threading;//不需要建構函式的委派物件internal sealed class NoConstructorDelegateClass{ public static void CallbackWithoutNewingADelegateObject() {
Time of Update: 2017-02-28
下載 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Net; using System.IO;using System.Text;using System.Threading;private void button6_Click(object
Time of Update: 2017-02-28
函數|下載 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Net; using System.IO;using System.Text;private void button3_Click(object sender,
Time of Update: 2017-02-28
函數|檔案名稱 C#根據網址抓區目錄和檔案名稱的兩個函數 我學這個軟體開始都思考這個問題了.今天終於完善了這個代碼.高興得很 2006-10-20 ,難道是晚上工作效率更高精神更集中的原因麼?哈哈public void GetUrlFolerName(string
Time of Update: 2017-02-28
string SaveFileName=DateTime.Now.Date.ToString("yyyy", DateTimeFormatInfo.InvariantInfo)+DateTime.Now.Date.ToString("MM", DateTimeFormatInfo.InvariantInfo); SaveFileName +=DateTime.Now.Date.ToString("dd",
Time of Update: 2017-02-28
'瀏覽選擇檔案 OpenFileDialog dlg = new OpenFileDialog(); dlg.DefaultExt = "xls"; dlg.Filter = "Text&
Time of Update: 2017-02-28
函數|網站 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Windows.Forms.Design;using System.DirectoryServices;using System.Reflection;using
Time of Update: 2017-02-28
iis|網站 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Windows.Forms.Design;using System.DirectoryServices;using System.Reflection;using
Time of Update: 2017-02-28
下載 //儲存檔案夾選擇對話方塊引用//添加引用system.design.dll /using System.Windows.Forms.Design;private void button4_Click(object sender, System.EventArgs
Time of Update: 2017-02-28
//大家在做報表或查詢的時候都會有給使用者預設一些可選的日期範圍(如上圖) //如本年度銷售額、本季度利潤、本月新增客戶 
Time of Update: 2017-02-28
前公司在製作播客系統(Web程式)中,用到從視頻截圖功能.下邊是截圖CatchImg方法,可從大多數的視頻檔案中截圖成功,大家可測試;如果截圖不成功,大多是因為視頻本身的問題,如編碼通訊協定或加了密.但從線上錄製的視頻Flv檔案中截圖,還未發現截圖失敗;/// <summary>/// @從視頻檔案截圖,產生在視頻檔案所在檔案夾/// 在Web.Config 中需要兩個前置配置項:/// 1.ffmpeg.exe檔案的路徑/// <add key="ffmpeg" value=
Time of Update: 2017-02-28
程式|執行 1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 擷取模組的完整路徑。2. System.Environment.CurrentDirectory
Time of Update: 2017-02-28
把表單的FormBorderStyle設為FormBorderStyle.Noneusing System.Runtime.InteropServices; private const uint WS_EX_LAYERED = 0x80000; private const int WS_EX_TRANSPARENT = 0x20;
Time of Update: 2017-02-28
放大|解決|問題 最近在寫工具的時候發現了一個很噁心的問題,當用DrawImage做映像放大的時候C#的預設放大演算法不是NearestNeighbor演算法,而Java Swing的drawImage放大演算法預設為NearestNeighbor演算法,解決方案是: g.InterpolationMode =
Time of Update: 2017-02-28
using System;using System.Runtime.InteropServices;using System.Drawing;using System.Drawing.Imaging;namespace CSharpChat{ /// <summary> /// ScreenCameraClass 的摘要說明。 /// </summary> public class ScreenCameraClass {&
Time of Update: 2017-02-28
using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential)]struct CURSORINFO{ public int cbSize; public int flags; public IntPtr hCursor; public Point
Time of Update: 2017-02-28
控制項(破解版,只限.Net2005)和皮膚下載地址:http://www.cnblogs.com/liuxzh1026/archive/2006/08/19/480981.html 嵌入在項目中: 將下載的皮膚檔案和IrisSkin2.RAR解壓,在項目中添加現有項,將皮膚檔案添加進項目;將IrisSkin2.dll引用進項目。皮膚檔案屬性中的“產生操作”改為內嵌資源。引用的IrisSkin2.dll屬性中的“複製本地”改為True。 在代碼中添加枚舉:
Time of Update: 2017-02-28
System.Sockes命名空間了實現 Berkeley
Time of Update: 2017-02-28
參考了SingleTon等方法,終於找到了一個比較簡單的方式讓類只執行個體化一次代碼很簡單,就不解釋了using System;namespace CWDZNew{ /// <summary> /// CWDZ 的摘要說明。 /// </summary> public class CWDZ { public static WPSearchfrm