
C.net Technology
文章平均质量分 73
wovow
这个作者很懒,什么都没留下…
展开
-
返回给定字符串的首字母
返回给定字符串的首字母Function IndexCode(ByVal IndexTxt As String) As String Dim i As Integer For i = 1 To IndexTxt.Length IndexCode = IndexCode & GetOneIndex(Mid(IndexTxt, i, 1)) Next转载 2004-10-11 21:50:00 · 1184 阅读 · 0 评论 -
C# Key Processing Techniques
The keys on a computer keyboard, unlike those in a conventional typewriter, fall into several categories: Normal input characters, including alphanumeric characters and punctuation marks. Functi转载 2004-11-24 20:07:00 · 3329 阅读 · 0 评论 -
C#中调用Windows API的要点 选择自 yiruoyun 的 Blog
C#中调用Windows API的要点 在.Net Framework SDK文档中,关于调用Windows API的指示比较零散,并且其中稍全面一点的是针对Visual Basic .net讲述的。本文将C#中调用API的要点汇集如下,希望给未在C#中使用过API的朋友一点帮助。另外如果安装了Visual Studio .net的话,在C:/Program Files/Microsof转载 2004-11-26 20:33:00 · 799 阅读 · 0 评论 -
IDesign C#编程规范
1 命名规则和风格 naming conventions and style2 编码惯例 coding practices3 项目设置和结构 project settings and structure4 framework特别指导 framework specific guidelines4.1 数据访问 data access4.2 asp.net和web service asp.net an转载 2004-11-26 21:12:00 · 1147 阅读 · 0 评论 -
用制作C#作屏幕捕获程序
我们已经了解了Visual Basic或者Delphi等语言是如何来实现对屏幕图象捕获的。那么对于C#来说,是如何实现这种功能的?本文就来探讨一下这个问题。 一. 程序设计开发及运行环境: (1).微软视窗2000服务器版 (2)..Net FrameWork SDK Beta 2 二. 程序设计的关键步骤以及具体的实现方法: (1).转载 2004-11-26 21:19:00 · 1049 阅读 · 0 评论 -
17种正则表达式
"^/d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-/d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?/d+$" //整数 "^/d+(/./d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9转载 2004-11-26 21:28:00 · 872 阅读 · 0 评论 -
C#多线程编程实例实战
单个写入程序/多个阅读程序在.Net类库中其实已经提供了实现,即System.Threading.ReaderWriterLock类。本文通过对常见的单个写入/多个阅读程序的分析来探索c#的多线程编程。 问题的提出 所谓单个写入程序/多个阅读程序的线程同步问题,是指任意数量的线程访问共享资源时,写入程序(线程)需要修改共享资源,而阅读程序(线程)需要读取转载 2004-11-26 21:43:00 · 1172 阅读 · 0 评论 -
把.NET程序部署到没有安装.NET Framwork的机器上
摘要 本文讨论了如何使用Windows Installer技术发布.NET程序,以及如何使用native代码判断目标机器上是否安装有.NET Framework; 如果没有,将自动安装.NET Framework然后安装作者自己的.NET程序。 -----------------------------------------------------------转载 2004-11-26 21:45:00 · 945 阅读 · 0 评论 -
Visual C#实现自定义组件的设计
一.前言 Visual C#作为一门新兴的编程语言,具有许多其它语言无法比拟的优点。它既有VB的快速简洁,同时又不失C++的高效性能,而且作为一门基于组件编程的语言,它在组件编程方面有着相当强大和完善的功能。本文笔者就通过运用Visual C#编写一个Pop3邮件接收组件向大家介绍如何用Visual C#进行组件编程以及编程过程中的一些方法和技巧,最后还给出了一个对该Pop3组件进行测试的W转载 2004-11-26 20:51:00 · 1230 阅读 · 0 评论 -
.NET中的密码学--对称加密
在.NET之前,使用非托管的Win32APIs加密解密数据是一件非常痛苦的事情。为了这个加密解密的目的,.NET配置了一组类(和命名空间)。现在你有很多类可以使用每种不同的算法保护你的数据。在.NET里面Crypttography命名空间下又定义了3种类型的加密方法。他们是AsymmetricAlgorithm,SymmetricAlgorithm和HashAlgorithm。所有的这些类(和.N转载 2004-11-26 21:14:00 · 959 阅读 · 0 评论 -
InstallShield X之二 WebForm安装
http://blog.joycode.com/hopeq/category/908.aspxInstallShield X之二 WebForm安装 补1 序列号与验证 InstallShield X之二 WebForm安装-7 User Interface、Media and Additional Tools InstallShield X之二 Web转载 2004-11-06 21:46:00 · 1839 阅读 · 0 评论 -
Global System Hooks in .NET
Download demo project - 105 KB Download source - 154 KB IntroductionThis article discusses the use of global system hooks in .NET applications. A reusable class library is developed along转载 2004-11-06 21:38:00 · 1360 阅读 · 0 评论 -
用C#操作INI文件
////////////////////////////////////////////////////////////// using System; using System.IO; using System.Runtime.InteropServices; using System.Text; namespace EchonComponentLibrary转载 2004-11-10 22:08:00 · 956 阅读 · 0 评论 -
从.NET应用程序访问Microsoft Office数据
Christa Carpentiere适用范围:Microsoft® AccessMicrosoft® ExcelMicrosoft® OfficeMicrosoft® Visual Basic® .NETMicrosoft® Visual Studio® .NET摘要:查看如何从 Office 文件中获取 Microsoft Access 和 Excel 数据并将转载 2004-11-05 15:27:00 · 1030 阅读 · 0 评论 -
SourceGrid - Open Source C# Grid Control
Download Source and Binary - 593 Kb Official SourceGrid Website IntroductionSourceGrid is a Windows Forms control written entirely in C#, my goal is to create a simple but flexible grid to转载 2004-11-05 15:54:00 · 2365 阅读 · 0 评论 -
实现拖放 DataGrid 列
拖放 DataGrid 列发布日期: 09/19/2004 | 更新日期: 09/19/2004Chris SanoMicrosoft Corporation摘要:了解如何利用基本的 GDI 功能,从而通过 DataGrid 控件获得可视化效果。通过跨越托管边界进行调用,可以利用本机 GDI 功能来执行屏幕捕获,并最终获得拖放体验。下载 ColumnDragData转载 2004-11-05 15:58:00 · 928 阅读 · 0 评论 -
TaskVision 解决方案概述:设计与实现
TaskVision 解决方案概述:设计与实现发布日期: 08/20/2004 | 更新日期: 08/20/2004Vertigo Software, Inc.适用于:.NET FrameworkWindows 窗体摘要:本文介绍了 TaskVision 解决方案示例的设计和体系结构决策。该示例演示了如何使用 .NET Framework 的 Windows 窗体类和 XM转载 2004-11-05 22:14:00 · 1203 阅读 · 0 评论 -
HOW TO: Set a Windows Hook in Visual C# .NET
HOW TO: Set a Windows Hook in Visual C# .NETArticle ID:318804Last Review:February 10, 2003Revision:2.0This article was previously published under Q318804IN THIS TAS转载 2004-11-06 21:35:00 · 1255 阅读 · 0 评论 -
Webservice的查询接口
www.google.com => http://api.google.com/GoogleSearch.wsdl http://www.google.com/apis/转载 2004-11-11 20:47:00 · 1572 阅读 · 0 评论 -
键盘敲击计数器·.NET中实现Global Hook
自从开始做现在这份工作以后,发现自己敲键盘明显增多,日常工作就是以编程以及type in各种各样东西为主,抑或就是在MSN Messenger上“笔谈”,以致我觉得我的键盘都有些承受不了了,“Alt”键有些粘滞。所以我打算短期内去买一个微软人体工学键盘,应该会对我的手腕和手指有好处。突然我又想到,很想知道一下我每天敲击键盘多少下。搜索了一下Google没有找到什么有关的结果,就自己用C#写了一个小转载 2004-11-06 21:33:00 · 1513 阅读 · 0 评论 -
Processing Global Mouse and Keyboard Hooks in C#
Download source files - 7.94 Kb Download demo project - 5.20 Kb IntroductionThis class allows you to tap keyboard and mouse and/or to detect their activity even when an application runs in t转载 2004-11-06 21:40:00 · 1261 阅读 · 0 评论 -
动态引用WebService,建立WebService虚拟机
//建立WebService虚拟代理,使用xml登记WebService的引用地址。实现动态引用WebService. //使用技术//1、动态编译 //2、反射技术 //实现代码using System;using System.Reflection ;using System.Web .Services .Description ;using Mic转载 2004-11-10 21:55:00 · 889 阅读 · 0 评论 -
使用DES对称加密代码,支持中文
//名称空间 using System; using System.Security.Cryptography; using System.IO; using System.Text; //方法 //加密方法 public string Encrypt(string pToEncrypt, string sKey) { DESCryptoServicePr转载 2004-11-26 21:16:00 · 1843 阅读 · 0 评论