2004年9月25日

使用DataReader填充DataTable

摘要: VB.NET ''' ----------------------------------------------------------------------------- ''' ''' Fill DataTable from DataReader ''' ''' DataReader对象 ''' 返回DataTable ''' ''... 阅读全文

posted @ 2004-09-25 16:55 小牛哥 阅读(5688) 评论(10) 推荐(0) 编辑

Asc和Chr

摘要: C# public static int Asc(string character) { if (character.Length == 1) { System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding()... 阅读全文

posted @ 2004-09-25 13:10 小牛哥 阅读(2668) 评论(7) 推荐(0) 编辑

获得一个随机数

摘要: VB.NET Public Function GetRandomNumber()Function GetRandomNumber(Optional ByVal Low As Integer = 1, Optional ByVal High As Integer = 100) As Integer Dim oRandom As System.Random oRa... 阅读全文

posted @ 2004-09-25 11:36 小牛哥 阅读(1168) 评论(1) 推荐(0) 编辑

将Html代码转换为Text

摘要: 在抓取html页时,需要过滤掉html代码,获取Html源代码中的Text,有正则表达式可以解决这个问题:VB.NET ''' ----------------------------------------------------------------------------- ''' ''' 移除所有的html标签 ''' ''' html代码 '... 阅读全文

posted @ 2004-09-25 11:20 小牛哥 阅读(5488) 评论(10) 推荐(0) 编辑

调用API捕获屏幕图像

摘要: 捕获屏幕图像俗称抓屏,在http://cnblogs.com/spidertan/archive/2004/09/03/39362.aspx提供了C#的版本,本文提供VB.NET和C#两个语言版本的代码(ScreenCapture.VB和ScreenCapture.CS),主要功能就是捕获屏幕或者窗口上的图象。http://www.codeguru.com/code/legacy/cs_graph... 阅读全文

posted @ 2004-09-25 10:53 小牛哥 阅读(3602) 评论(1) 推荐(0) 编辑

获得一个字符的ASCII值

摘要: VB.NET代码: Dim charactertofind As String 'Find ASCII value of g charactertofind = "g" charactertofind = Asc(charactertofind) 'MsgBox(charactertofind) window code Response.Write(char... 阅读全文

posted @ 2004-09-25 09:18 小牛哥 阅读(3698) 评论(10) 推荐(0) 编辑

返回当前目录中的文件名列表

摘要: VB.NET语法: ''' ----------------------------------------------------------------------------- ''' ''' 返回当前目录中与给定 sSearchPattern(如“*.txt”)匹配的文件名列表 ''' 如果sSearchPattern为空,则返回当前目录中所有的文件名列表 ... 阅读全文

posted @ 2004-09-25 08:41 小牛哥 阅读(1846) 评论(2) 推荐(0) 编辑

导航