· 首先要感谢bigeagle的帮助,这个也是参考她的bbs做成的
留言板分三个模块:列出留言列表、显示详细内容、发表留言
notepage.cs
namespace notpage
{
using System;
using System.Data.SQL ;
using System.Data ;
using System.Collections ;
///////////////////...
· 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 defining an indexer. Unlike prope...
· 运用由来已久的技术更快地得到高质量的代码。
by Bill Wagner
.NET Framework中包含许多工具可以用来更快、更容易地编写正确的程序。但我们得面临这样的情况:出现bugs。不管程序多么简单,程序员都可能出错。根据我的经验,大多数程序的bugs出现在程序员之间的接口:当一个程序员编写的代码被另...
· Recently somebody asked how to get the Hard Drive serial number in VB.NET. The easy answer of course is to use VBScript with the WMI classes. Actually, this gets the "Volume" serial number, not the hard-coded manufacturer's hard drive serial number, which needs to b...
· 本文讲述作者喜欢的4个使C#语言编程更加高效的技巧。
by Bill Wagner
1.如果可能尽量使用接口来编程
.NET框架包括类和接口。当你写程序的时候,你可能知道你正在用.NET的哪个类。然而,在这种情况下如果你用.NET支持的接口而不是它的类来编程时,你的代码会变得更加稳定、可用性会更高。请分析下...
· Indexer是C#中新增加的,可能有些朋友会有些困惑,最近做的一些事情
经常使用Index,顺手写一个简单的例子给大家看看,如果有什么问题可以问!
这个例子包含三个类:DataRow、DataItem、DataItemCollection。
其中DataItemCollection中使用了Indexer。
using System;
using System.Coll...
· 請你自己加個CommonDialog控件Private Sub Command3_Click()Dim objFileSystem As ObjectDim objExcelText As ObjectDim strTableString As String, i As Integer, strFileName As StringDim pubConn As New ADODB.ConnectionDim rsTable As New ADODB.RecordsetDim strConn As StringDim strSQL A...
· 在VB中要使用Scripting API for WMI,必须引用 Microsoft WMI Scripting V1.1 Library下面介绍Scripting API For WMI的几个对象SWbemLocator——用于取得SWbemServices对象,他代表了本地或远程计算机上名字空间的一个连接。
SWbemService——代表名字空间的一个连接,可用于处理它的部件
SWbemObj...
· Web Service一词似乎一夜之间就热了起来。所谓的Web Service是指由企业发布的完成其特别商务需求的在线应用服务,其他公司或应用软件能够通过Internet来访问并使用这项在线服务。
Web Service是下一代的WWW,它允许在Web站点上放置可编程的元素,能进行基于Web的分布式计算和处理。Web Service的 ...