Time of Update: 2018-12-04
原文地址:http://www.cnblogs.com/ycdx2001/archive/2011/04/24/2026468.html
Time of Update: 2018-12-04
1)API定義結構:BlendFunction struct BlendFunction { public byte BlendOp; public byte BlendFlags; public byte SourceConstantAlpha;//清晰度 public byte AlphaFormat;
Time of Update: 2018-12-04
/// <summary> /// 讀取Excel表格式資料方法三,返回資料集DataSet /// </summary> /// <param name="str">所要開啟的檔案地址</param> /// <returns></returns> private DataSet GetExcelDataSet1(string
Time of Update: 2018-12-04
//定義變數 private static DateTime currentDateTime; //目前時間 private static DateTime lastDateTime; //昨天時間 private static DateTime nextDateTime; //明天時間 private static int currentDayOfWeek;
Time of Update: 2018-12-04
網路上搜尋一大堆的MD5加密的代碼,輸入字元"wuxiaomei*",你會發現系統出錯所以最好成績還是按照下面的代碼修改你的資料程式吧.public string mymd5(string str,int code) { if(code==16) //16位MD5加密(取32位加密的9~25字元) { return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,"MD5
Time of Update: 2018-12-04
C#往SQL資料庫欄位中插入二進位檔案的三種方法,網路測試程式一別人好象成功了.我怎麼都測試不成功.同事解說是INSERTSQL語句是字串.所以不能把二進位內容跟欄位聯合起來傳遞給SQL2000//建立一個SqlConnection對象 string strCon = "Initial Catalog='HMMISDATA';Server='192.168.1.180';User ID='使用者名稱';Password='密碼';Persist Security Info=True";
Time of Update: 2018-12-04
c#資料庫連接代碼///系統引用using System.Data;using System.Data.OleDb;using System.Data.SqlClient;/// <summary>/// 必需的設計器變數。/// </summary>private System.ComponentModel.Container components = null;private System.Data.DataSet
Time of Update: 2018-12-04
//收藏夾太多太混亂,打算系統整理合并.整個工具未開發完成//下面是讀取系統預設收藏夾檔案中所有包含子目錄中的連結網址資訊代碼using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.IO;namespace
Time of Update: 2018-12-04
參考文章http://www.cnblogs.com/hanfeng/archive/2005/03/03/112246.htmlhttp://liuluanqing.blog.ccidnet.com/blog-htm-do-showone-uid-16196-type-blog-itemid-128023.html第一步:引用空間//系統預設空間添加using System;//添加對註冊表操作所需引用空間using
Time of Update: 2018-12-04
C# DataGrid設定欄位標題列寬代碼//擷取目前使用者的已聯絡客戶資料列表 private void GetMyContactUserList() { try { //建立一個SqlConnection對象 string strCon = "Initial Catalog='HMMISDATA';Server='192.168.1.251';User ID='XQF222';Password='hao123';Persist
Time of Update: 2018-12-04
//添加系統引用using System.IO; private void 備份收藏夾ToolStripMenuItem_Click(object sender, EventArgs e) { string BackupFavoritePath; string SystemFavoritePath = GetSystemFavoritePath(); FolderBrowserDialog
Time of Update: 2018-12-04
C# 應用程式類中定義ACCESS資料庫檔案地址的方法方法一:資料庫訪問類using System;using System.Collections.Generic;using System.Text;using System.Data.OleDb;using System.Data;namespace Link.DataBase{ public class DBManage { System.Data.OleDb.OleDbConnection gConn =
Time of Update: 2018-12-04
C#與C++資料類型對應表 C#調用DLL檔案時參數對應表Wtypes.h 中的非託管類型非託管 C 語言類型託管類名說明HANDLEvoid*System.IntPtr32 位BYTEunsigned charSystem.Byte8 位SHORTshortSystem.Int1616 位WORDunsigned shortSystem.UInt1616 位INTintSystem.Int3232 位UINTunsigned intSystem.UInt3232
Time of Update: 2018-12-04
//添加引用System.Text;//添加引用System.IO; /// <summary> /// C#檢測上傳圖片是否安全函數 /// </summary> /// <param name="strPictureFilePath"></param> public void CheckPictureSafe(string
Time of Update: 2018-12-04
C# 多個textBox控制項調用同一個monthCalendar輸入日期:代碼如下需要添加textBox1+textBox2+monthCalendar1控制項DateTime FirstClick; int TextBoxNumber; private void textBox1_Click(object sender, EventArgs e) { this.TextBoxNumber = 1;
Time of Update: 2018-12-04
/// <summary>/// 發送單封郵件/// </summary>/// <param name="MailToAddress"></param> public void SendOneEmail(string MailToAddress) { string MailFromAddress=txtEmail.Text; string MailTitle=txtEmailTitle.Text; string
Time of Update: 2018-12-04
C#使用串口SerialPort開發簡訊貓收發簡訊系統總結 開發環境:VS2008+SQLSERVER2008+單口簡訊貓+8口簡訊貓主要知識:串口參數配置+簡訊貓常用操作+簡訊編碼的加密解密下面詳細介紹下相關的知識經驗和總結: 一串口參數配置:PortName 串口名稱,COM1,
Time of Update: 2018-12-04
從鍵盤上輸入3個數,分別設為三角形的3條邊,然後求其面積#include "stdio.h"#include "conio.h"#include <math.h>main(){ float a,b,c; float area; float s; scanf("%f,%f,%f",&a,&b,&c); if((a+b)<c){ printf("erro"); }else if((a-b)>c){
Time of Update: 2018-12-04
今天看了一下vc內建的一些標頭檔的內容,看到很多語句後面都有反斜線,在印象中就只有//是表示注釋功能的,但是反斜線也只是一個逸出字元來的。但是語句後面再加一個反斜線,還真沒見過!查了一下,原來是這樣的:①逸出字元;如:\n表示斷行符號+換行等。②續行符;這個需要注意一下,在一般的語句中,這個有和沒有事沒關係的,編譯器編譯的時候會自動把兩句連在一起(注意是把第二行原原本本從開始第一個字元(包括空格)串連到前一行上面);看下面例子:int i = 1; cout<<i++
Time of Update: 2018-12-04
轉載自:http://www.cnblogs.com/jdmei520/archive/2009/06/17/1505053.htmlWebservice技術的出現將各種開發技術和語言完全的融合了,下面就這種融合在C#和delphi之間的互動做一次全面的體現1.使用C#建立一個Webservice服務。 使用vs2005的模板建立C#的webservice非常容易。原檔案如下: [WebService(Namespace = "http://localhost/webserver/")]