Time of Update: 2017-02-28
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any
Time of Update: 2017-02-28
excel|visual|word|編程 樣本 3:開啟現有的 Word 文檔同 Documents.SaveAs 方法一樣,Documents.Open 方法簽名在 Office 2000 和 OfficeXP 之間也存在差別,因此新名稱封裝在 #if 聲明中。Open 方法和 SaveAs 方法一樣簡單,如下所示: object fileName =
Time of Update: 2017-02-28
visual|編程|資料|資料庫 在Visual Studio.NET Beta 1版本中訪問IBM DB2等非SQL Server資料庫通常是使用ADO.NET的ODBC方法,而在Beta 2中則改用OLE DB方式存取資料庫。 Beta1中連接字串主要需聲明資料庫的ODBC的DNS名字,但Beta 2中的OLE
Time of Update: 2017-02-28
visual|資料 在本篇文章中,我們將介紹Visual C#對資料庫的一個基本操作,即:如何往資料庫中添加記錄。我們將通過一些資料庫操作的例子,來具體說明一下。為了更清楚的說明這個問題,在選用資料庫方面採用了二種當前比較典型的資料庫,其一是本機資料庫--Access 2000,另外一個是遠端資料庫--SQL SERVER 7.0。首先介紹如何用Visual C#來添加Access 2000資料庫的記錄。一.用Visual
Time of Update: 2017-02-28
教程|控制|語句
Time of Update: 2017-02-28
An indexer enables you to use an index on an object to obtain values stored within the object. In essence this enables you to treat an object like an array.An indexer is also similar to a property. As with properties, you use get and set when
Time of Update: 2017-02-28
Creating Collection Classes in C# IntroductionCollection classes are used frequently in .NET. For example, classes like ArrayList, NamevalueCollection, HashTable are collection classes. One peculiar thing of collection classes is that they can be
Time of Update: 2017-02-28
object|圖形 從未開啟圖形中能獲得圖塊的資訊嗎?回答是肯定的。下面就來說明具體的實現方法。 要求:n 會用C#編程n 讀過我寫的“利用C#進行AutoCAD的二次開發“(在csdn中有)開始:n 在visual studio.net中建立一C#控制台程式n 在引用選項卡中添加下列類庫:l interop.AutoCAD.dlll AcadExample.dlll
Time of Update: 2017-02-28
大家好,今天我繼續給各位介紹利用C#進行AutoCAD的二次開發。在這一講中,主要介紹上一講例子中存在的問題。 在上一次的例子中我是通過引用AutoCAD 2004 Type
Time of Update: 2017-02-28
系統資訊無外乎系統軟硬體資訊,需要檢測的資訊也是這些資訊。.net的類庫為我們提供了獲得系統訊息所需的一些函數,為我們的程式設計帶來了不少的便利。 下面的部分將說明這些類庫中最基本的三個類庫的使用。 SystemInformation類
Time of Update: 2017-02-28
一周學會C#(前言續二)C#才鳥(QQ:249178521)8.操作符操作符 類型 + - * / %(取餘數) 算術 && || ! ?: 邏輯< <= > >= 關係 == != 相等 = 賦值9.編程風格· 較正規的編程風格 w
Time of Update: 2017-02-28
中文 最近在電腦城上買了一根NOKIA3210的資料線,玩了幾天改LOGO、改鈴聲後也將資料線扔在一邊。直到前幾天在Http://oxygensoftware.com上看到有發手機簡訊息的二次開發控制項,才想起多日不用的資料線,而且最近在學C#,覺得用C#做個發簡訊息的程式也不錯,經過多天的測試,終於實現用電腦+資料線+手機的模式,實現在單位的區域網路平台上傳送簡訊息了。
Time of Update: 2017-02-28
# 特性(Attribute)入門(一) By sadaf alvi 翻譯:cppbug (itwizard@163.com)緒論特性(Attributes)是一種嶄新的聲明性資訊。我們不僅可以通過特性來定義設計層面的資訊(例如help file, URL for
Time of Update: 2017-02-28
//寫INI檔案[ DllImport ( "kernel32" ) ]private static extern bool WritePrivateProfileString ( string section ,string key , string val , string filePath ) ; //讀ini檔案(字元[ DllImport ( "kernel32" ) ]private static extern int
Time of Update: 2017-02-28
在 C# 裡面, 主視窗擁有主線程, 主線程產生子線程監控 Socket 埠, 子線程一收到資料流就會給主線程發送一個事件, 建立一個視窗. 現在的情況是子線程能夠收到資料流, 主視窗能夠收到子線程發送過來的事件, 能夠建立一個視窗. 這個視窗有問題: 視窗狀態像死掉程式的視窗一樣, 反白的.開發碰到很棘手的問題, 尋找解決方案. 品味程式出錯過程, 逐步跟蹤程式執行過程, 每一行代碼每一條語句全部執行, 怪了, 大白天碰到鬼了. 主視窗加入一個按鈕, 按鈕的作用就是執行主視窗的事件,
Time of Update: 2017-02-28
教程 SUNWEN教程之----C#進階(二)mrfat@china.com 好了,I COME BACK,下面的代碼顯示了我們如何列印多個參數:000: // CommandLine\cmdline1.cs001: using System;002:003: public class CommandLine004: {005: public static void
Time of Update: 2017-02-28
教程
Time of Update: 2017-02-28
web 下面,我們看看如何建立和部署一個最簡單的Web服務 建立Web服務1.在wwwroot目錄下建立一個叫做Webservice的目錄。2.建立下面這樣一個檔案:<%@ WebService Language="c#" Class="AddNumbers"%>using System;using System.Web.Services;public class AddNumbers :
Time of Update: 2017-02-28
網路 以前在玩Windows 98的時候,幾台電腦連起來,需要測試網路連接是否正常,經常用的一個命令就是Ping.exe。感覺相當實用。 現在 .net為我們提供了強大的功能來調用外部工具,並通過重新導向輸入、輸出擷取執行結果,下面就用一個例子來說明調用Ping.exe命令實現網路的檢測,希望對.net初學者有所協助。首先,我們用使用Process類,來建立獨立的進程,匯入System.Diagnostics,using
Time of Update: 2017-02-28
進程 自己想了另一個辦法來作先修改註冊表:HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Service\\PerfProc\\Performance下的:Disable Performance Counters 的值改為0得到系統當前進程,加入到listBox中:System.Diagnostics.Process[] processOnComputer =