原创 Google Earth For Javascript 谷歌地球刪除所有標記

//前提是google earth 已經在頁面加載   即 ge!= null 否則報錯 function removeAllMarker() {  var allChildren = ge.getFeatures().getChil

原创 C# 等待窗體 利用timer設置窗體是否關閉

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using Sy

原创 C# Access 數據庫 操作

using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Da

原创 Google Earth For Javascript 谷歌地球添加標記

//前提是google earth 已經在頁面加載   即 ge!= null 否則報錯 function addMarker(lng,lat,markerName,markerIconUrl,description)  //lng

原创 C# 調用C++ dll 指向指針的指針 對應數據類型

dll 方法:            int ADL_Display_DisplayMapConfig_Get (int iAdapterIndex, int *lpNumDisplayMap,  **lppDisplayMap,

原创 C# 上傳文件

using System; using System.Text; using System.Data; using System.Windows.Forms; using System.IO; //拷貝一份想要上傳的文件放到指定的程

原创 C# 窗體中 webbrowser 中 javascript 調用窗體方法 實例

//窗體文件 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using Sy

原创 javascript 網頁打印

<script type="text/javascript"> function doPrint()  {   bodyHtml=window.document.body.innerHTML;      //將整個頁面作爲字符串讀取出

原创 C# 簡單時間操作

public string now = String.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now);   DateTime deadLine = new System.DateTim

原创 百度地圖API添加海量圖標解決方案

採用百度地理信息可視化開源庫mapv.js實現 以canvas形式繪畫渲染海量圖標,允許自定義圖標點擊事件及附加數據 參考文檔:https://github.com/huiyan-fe/mapv/#readme 主要代碼: functi

原创 Javascript 數字金額 轉換爲 大寫漢字金額

//將數字形式的金額轉換爲大寫漢字形式的金額 function NumberToChinese(currencyDigits) {  // 數字上限  var MAXIMUM_NUMBER = 99999999999.999;  //

原创 C# 多文檔界面 頁面切換

//主界面窗體類文件 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using Syste

原创 C# Windows7 VS 訪問Access數據庫 Microsoft.Jet.OLEDB.4.0 未註冊 解決方法

VS菜單欄->生成->配置管理器->活動解決方案平臺->點擊Any Cpu選項卡->選擇新建->新建平臺->選擇X86

原创 C# 程序運行時間檢測打印

///////////TimeCheck.cs文件////////////// using System; using System.Collections.Generic; using System.Text; using S

原创 C# 內存垃圾回收

private void GarbageCollect()         {             GC.Collect();             GC.WaitForPendingFinalizers();