C#串口通訊CRC校正碼計算類

來源: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

C#委託方法匿名的4種寫法

using System;using System.Threading;//不需要建構函式的委派物件internal sealed class NoConstructorDelegateClass{    public static void CallbackWithoutNewingADelegateObject()    {       

C#用線程傳參下載檔案的代碼

下載 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

C#下載檔案函數

函數|下載 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,

C#根據網址抓取目錄和檔案名稱的兩個函數

函數|檔案名稱 C#根據網址抓區目錄和檔案名稱的兩個函數 我學這個軟體開始都思考這個問題了.今天終於完善了這個代碼.高興得很 2006-10-20 ,難道是晚上工作效率更高精神更集中的原因麼?哈哈public void GetUrlFolerName(string

C#新儲存檔案時候用到按日期時間命名的代碼

string SaveFileName=DateTime.Now.Date.ToString("yyyy", DateTimeFormatInfo.InvariantInfo)+DateTime.Now.Date.ToString("MM", DateTimeFormatInfo.InvariantInfo);   SaveFileName +=DateTime.Now.Date.ToString("dd",

C#中調用對應的應用程開啟檔案序的代碼

'瀏覽選擇檔案 OpenFileDialog   dlg   =   new   OpenFileDialog();      dlg.DefaultExt   =   "xls";      dlg.Filter   =   "Text&

C#建立網站,刪除網站函數代碼

函數|網站 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

C#列表所有IIS網站以及相關網站屬性

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

C#下載檔案時候彈出選擇檔案夾儲存目錄的代碼

下載 //儲存檔案夾選擇對話方塊引用//添加引用system.design.dll   /using System.Windows.Forms.Design;private void button4_Click(object sender, System.EventArgs

C#裡巧用DateTime預設一些可選的日期範圍(如本年度、本季度、本月等)

               //大家在做報表或查詢的時候都會有給使用者預設一些可選的日期範圍(如上圖)                //如本年度銷售額、本季度利潤、本月新增客戶 

C#從視頻截圖的方法

前公司在製作播客系統(Web程式)中,用到從視頻截圖功能.下邊是截圖CatchImg方法,可從大多數的視頻檔案中截圖成功,大家可測試;如果截圖不成功,大多是因為視頻本身的問題,如編碼通訊協定或加了密.但從線上錄製的視頻Flv檔案中截圖,還未發現截圖失敗;/// <summary>/// @從視頻檔案截圖,產生在視頻檔案所在檔案夾/// 在Web.Config 中需要兩個前置配置項:/// 1.ffmpeg.exe檔案的路徑/// <add key="ffmpeg" value=

總結C#中得到程式當前工作目錄和執行目錄的一些方法

程式|執行  1.   System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName     擷取模組的完整路徑。2.   System.Environment.CurrentDirectory    

C#製作滑鼠可以穿透的表單

把表單的FormBorderStyle設為FormBorderStyle.Noneusing System.Runtime.InteropServices;        private const uint WS_EX_LAYERED = 0x80000;        private const int WS_EX_TRANSPARENT = 0x20;

C#映像放大問題解決方案

放大|解決|問題    最近在寫工具的時候發現了一個很噁心的問題,當用DrawImage做映像放大的時候C#的預設放大演算法不是NearestNeighbor演算法,而Java Swing的drawImage放大演算法預設為NearestNeighbor演算法,解決方案是:         g.InterpolationMode =

C#截屏

using System;using System.Runtime.InteropServices;using System.Drawing;using System.Drawing.Imaging;namespace CSharpChat{ /// <summary> /// ScreenCameraClass 的摘要說明。 /// </summary> public class ScreenCameraClass {&

C#中獲得系統當前滑鼠的圖案

using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential)]struct CURSORINFO{    public int cbSize;    public int flags;     public IntPtr hCursor;    public Point

c#換膚(2005)

控制項(破解版,只限.Net2005)和皮膚下載地址:http://www.cnblogs.com/liuxzh1026/archive/2006/08/19/480981.html 嵌入在項目中: 將下載的皮膚檔案和IrisSkin2.RAR解壓,在項目中添加現有項,將皮膚檔案添加進項目;將IrisSkin2.dll引用進項目。皮膚檔案屬性中的“產生操作”改為內嵌資源。引用的IrisSkin2.dll屬性中的“複製本地”改為True。 在代碼中添加枚舉:

C#檔案傳輸

System.Sockes命名空間了實現 Berkeley

C#中類只執行個體化一次

參考了SingleTon等方法,終於找到了一個比較簡單的方式讓類只執行個體化一次代碼很簡單,就不解釋了using System;namespace CWDZNew{ /// <summary> /// CWDZ 的摘要說明。 /// </summary> public class CWDZ {  public static WPSearchfrm

總頁數: 4314 1 .... 1134 1135 1136 1137 1138 .... 4314 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.