
C#
文章平均质量分 81
wkjs
这个作者很懒,什么都没留下…
展开
-
nusoap 中文乱码 C# 调用
<?phprequire_once(../lib/nusoap.php);$server = new soap_server();$server->soap_defencoding=UTF-8;$server->decode_utf8=false;$server->configureWSDL(Service1);$server->regi原创 2008-06-12 15:24:00 · 2009 阅读 · 0 评论 -
C#實現自動啟動
private void toolStripMenuItem3_Click(object sender, EventArgs e) ...{ if (autorun == true) ...{ RunWhenStart(false, Application.ProductName, Application.原创 2007-09-19 22:04:00 · 800 阅读 · 0 评论 -
C#朗读文章
先在C盘下找到sapi.dll文件,添加的引用using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using SpeechLib原创 2007-06-18 12:00:00 · 2039 阅读 · 3 评论 -
打印DataSet中的数据
功能有限,暂时不能分页,有待进一步完善。 private void two(PrintPageEventArgs e, DataSet aa) ...{ Font HeadFont = new Font("宋体", 18); Font BodyFont = new Font("宋体", 12); Graph原创 2007-06-18 11:26:00 · 3442 阅读 · 0 评论 -
關閉程式使程式最小化
private void 顯示程序ToolStripMenuItem_Click(object sender, EventArgs e) ...{ if (顯示程序ToolStripMenuItem.Checked==false) ...{ this.Show();原创 2007-09-16 22:27:00 · 579 阅读 · 0 评论 -
關機程式操作類
using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace Walter.K.Wang.ShutDown...{ /**//// /// /// public class ShutDown ...{原创 2007-09-16 22:30:00 · 607 阅读 · 0 评论 -
只運行一個程序之二
using System;using System.Collections.Generic;using System.Windows.Forms;using System.Threading;namespace Walter.K.Wang.Demo...{ static class Program ...{ /**//// /// 應用程式的主要進入點原创 2007-09-16 21:58:00 · 684 阅读 · 0 评论 -
Windows Mobile asp.net第一個程序
...@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>...@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile原创 2007-09-14 09:53:00 · 1147 阅读 · 0 评论 -
修該Config文件程序程式
using System;using System.Collections.Generic;using System.Text;using System.Configuration;using System.Xml;using System.Reflection;namespace Walter.K.Wang.Config...{ /**//// /// 讀寫配置文件操作類原创 2007-09-17 19:51:00 · 792 阅读 · 0 评论 -
打印控件程序
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace原创 2007-06-08 10:42:00 · 973 阅读 · 1 评论 -
只運行一個程式之一
using System;using System.Collections.Generic;using System.Windows.Forms;using System.Diagnostics;using System.Reflection;namespace WindowsApplication1...{ static class Program ...{ /**原创 2007-08-02 15:37:00 · 747 阅读 · 0 评论 -
GridView單頁全選--服務段實現
@ Page Language="C#" %>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">script runat="server"> protected void CheckBox2_Check原创 2007-07-19 11:23:00 · 889 阅读 · 0 评论 -
用户登陆操作(ASP.NET)
using System;using System.Data;using System.Configuration;using System.Web;using System.Data.SqlClient;namespace DataOperator...{ /**//// /// Login 的摘要说明 /// public class Login ...{原创 2007-10-18 14:20:00 · 1022 阅读 · 0 评论 -
程序开机自动启动
//RunWhenStart.csusing System;using System.Collections.Generic;using System.Text;using Microsoft.Win32;using System.Windows.Forms;namespace Walter.K.Wang{ /// /// /// public class Run原创 2007-10-26 10:07:00 · 930 阅读 · 0 评论 -
关机、重启、登出、关闭电源操作
//ShutDown.csusing System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace Walter.K.Wang{ /// /// /// public class ShutDown {原创 2007-10-26 10:12:00 · 857 阅读 · 0 评论 -
Singleton
public sealed class SingletonT> where T:new() ...{ private static T instance = new T(); private static object lockHelper = new object(); private Singleton() ...{ } pub原创 2008-01-23 15:35:00 · 551 阅读 · 0 评论 -
文件批量改名
private void GhangeNames(string filepath, string sfm, int k) { DirectoryInfo inf = new DirectoryInfo(filepath); FileInfo[] files = inf.GetFiles();原创 2008-01-14 16:41:00 · 611 阅读 · 0 评论 -
从模板创建Excel程序
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication3{ p原创 2008-03-04 13:33:00 · 1148 阅读 · 0 评论 -
一个项目包含两个Main函数编辑方式
using System;//一个项目中包含两个Main函数namespace Walter.Example{ /// /// 第一个类 /// 编译方式为:csc Demo.cs /main:Walter.Example.Client /// class Client { public static int Main() {原创 2008-02-25 12:04:00 · 2354 阅读 · 0 评论 -
文件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;nam原创 2008-02-21 13:02:00 · 625 阅读 · 0 评论 -
拖拽功能--拖放桌面上的对象
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Diagnosti原创 2007-12-03 09:30:00 · 688 阅读 · 0 评论 -
拖拽功能--拖动列表中的项
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace Walter.K.Wan原创 2007-12-03 09:29:00 · 901 阅读 · 0 评论 -
文件
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 WindowsAppl原创 2008-02-21 13:01:00 · 531 阅读 · 0 评论 -
正则表达式验证
/// /// 正则表达式验证 /// /// 检验数据 /// 正则表达式 /// 检验结果 private bool bMatch(string input, string pattern) { //声明一个Regex对象 Sys原创 2008-01-29 16:54:00 · 622 阅读 · 1 评论 -
ADO 访问数据库
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication1{ public原创 2008-01-21 11:25:00 · 1066 阅读 · 0 评论 -
发送电子邮件类
using System;using System.Collections.Generic;using System.Text;//添加命名空间using System.Net.Mail;using System.Net;namespace Walter.K.Wang...{ /**//// /// 发送电子邮件类 /// public class Mail原创 2007-10-11 22:09:00 · 1163 阅读 · 0 评论 -
數據庫操作類
http://dl2.youkuaiyun.com/down4/20070719/19101125349.dll using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web原创 2007-07-19 10:13:00 · 730 阅读 · 0 评论 -
GridView單頁全選--客戶段實現
@ Page Language="C#" %>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">script runat="server"> protected void Page_Load(objec原创 2007-07-19 11:14:00 · 931 阅读 · 0 评论 -
不同iframe調用
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="http://www.w3.org/1999/xhtml" >head> title>未命名頁面title> script原创 2007-04-17 13:04:00 · 935 阅读 · 0 评论 -
流与文件
1. Environment类Environment类是System命名空间的一部分,他包含的属性和方法可以获取当前程序所在系统的信息、当前登录到系统的用户信息和用于保存当前系统环境信息的环境变量除了关于这些环境变量信息之外,用Environment类还能提取命令参数、退出代码、调用堆栈的内容、自从上次系统启用以来的所有经历时间、运行的CLR的版本等等。原创 2006-05-06 16:25:00 · 1437 阅读 · 0 评论 -
读取硬件序列号
using System;using System.Collections.Generic;using System.Text;using System.Management;namespace 读取序列号...{ class Class1 ...{ public static void Main() ...{ //获取CPU序列号转载 2006-09-16 08:44:00 · 1589 阅读 · 0 评论 -
MD5加密
using System;//声明.NET Framework提供加密服务的命名空间using System.Security.Cryptography;using System.Text;//声明提供.NET Framework提供正确的正则表达式的命名空间using System.Text.RegularExpressions;namespace WKJSMD5...{ public原创 2006-09-14 04:11:00 · 941 阅读 · 0 评论 -
十天学会ASP.NET第二天
学习目的:掌握C#的基本知识 一、定义变量: string strExample; 字符串("aaa") char chrExample; 字符(a) bool blnExample; Bool型(true/false) DataTime datExample; 日期型("09/19/2002") int intExample; 整数(32位有符号整数) double dblExample;原创 2006-04-23 09:09:00 · 950 阅读 · 2 评论 -
十天学会ASP.NET第一天
我认为ASP.NET比ASP难很多,希望大家做好准备。难难在实现同一个效果有很多方法,大家或许会疑惑。十天学会系列教程会清晰的写出各种方法,让大家能少一点坎坷。在ASP里面,大家几乎都是使用VB,数据库嘛,也无非是SQL和ACCESS。在ASP.NET里面,数据库还是这两个但是常用的语言多了一个C#,也是微软推荐的语言,为.NET平台定制的语言。这样ASP.NET就有四种组合:VB+ACC原创 2006-04-23 08:49:00 · 799 阅读 · 0 评论 -
十天学会ASP.NET第四天
学习目的:掌握WEB控件的使用(二) 首先我要说明,我这十天教程也只是一个让大家对ASP.NET有一个认识而已,我也跳过了很多东西。网上有很多人在责骂我写的教程,认为十天什么都学不会,看了我的教程还是什么都不会,我想他们或许是过高估计了我的教程。外面有很多书,关于ASP和ASP.NET的,我就是看外面的书学会的。我所要做的就是希望大家能看了我的教程以后觉得ASP和ASP.NET不是学不会的东西然后原创 2006-04-23 09:19:00 · 734 阅读 · 0 评论 -
ASP.NET ViewState
ASP.NET ViewState 初探1. ViewState的工作原理 ViewState是由ASP.NET页面框架管理的一个隐藏的窗体字段。当ASP.NET执行某个页面时,该页面上的ViewState值和所有控件将被收集并给和格式化成一个编码字符串,然后分配给隐藏窗体字段的值属性(即)。由于隐藏窗体字段是发送到客户端的页面的一部分,所以ViewState值被临时存储在客户端的浏原创 2006-08-26 21:39:00 · 2268 阅读 · 3 评论 -
C#中DLL的调用---隐式调用
第一步:创建DLL新建项目(类库)第二步:建立windows应用程序,并倒入DLL第三步:在wingdows程序中调用引入的dll库文件原创 2006-02-25 10:08:00 · 1622 阅读 · 0 评论 -
ADO.NET快速起步
ADO.NET是微软的Microsoft ActiveX Data Objects (ADO)的下一代产品,是在微软的.NET中创建分布式和数据共享应用程序的应用程序开发接口(API)。 ADO.NET能被用在任何用户的应用程序,需要和OLE DB-compliant的数据源连接和通讯,例如Microsoft SQL Server。 同时ADO.NET又保持着与以前的ADO模型有关的一些主要概念,原创 2006-03-19 21:35:00 · 1040 阅读 · 0 评论 -
ADO.NET 示例应用程序
下面是一个简单的 ADO.NET 应用程序,它从数据源中返回结果并将输出写至控制台或命令提示符窗口。通过 ADO.NET 访问数据中提供的示例代码的大部分都可以放入利用此示例创建的模板,以查看特定 ADO.NET 功能的工作示例。本主题中的示例代码显示 ADO.NET 应用程序中包含的典型命名空间。对 SQL Server .NET Framework 数据提供程序 (System.Data.原创 2006-03-22 10:11:00 · 1424 阅读 · 1 评论 -
ASP.NET事务处理
事务处理简介1.1什么是事务处理事务是一组组合成逻辑工作单元的数据库操作,虽然系统中可能会出错,但事务将控制和维护每个数据库的一致性和完整性。如果在事务过程中没有遇到错误,事物中的所有修改都将永久成为数据库的一部分。如果遇到错误,则不会对数据库做出任何修改。1.2事务处理过程1. 开始一个事务。进入“事物待命”状态。2. 在“事务待命”状态,记录事务中改变的数据库记录。原创 2006-03-19 18:20:00 · 8470 阅读 · 3 评论