上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: Image主要实现读取图片文件(Image.FromFile)和保存图像文件(Image.Save)。只要将图片转为Image类之后,就可以用.Net里面强大的GDI+功能GDI+必须先要创建Graphics,一般的创建方法有Panel1.CreateGraphicsGraphics的DrawLine,DrawString,DrawImage都是十分常用的方法。例如:代码Code highligh... 阅读全文
posted @ 2010-03-26 23:23 Mo 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 在类里面要定义一个事件,我在某处激活事件。例如:Public Class clsEventTest Private _sValue As String Public Event ValueChange(ByVal sender As Object, ByVal Cancel As Boolean) Public Property Value() As String Get Return Me._s... 阅读全文
posted @ 2010-03-16 15:43 Mo 阅读(226) 评论(0) 推荐(0) 编辑
摘要: @echo offfor /f "delims=:" %%a in ('findstr /n .* 文本文件路径') do (set Lines=%%a)Set /a NN=%Lines%-1more +%NN% 文本文件路径pause 阅读全文
posted @ 2010-03-12 17:57 Mo 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 首先要设置某控件的AllowDrapdrop属性为True然后利用控件的MouseDown事件激活Drapdrop  Private Sub 事件函数名(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 控件.MouseDown    If e.Button = Windows.Forms... 阅读全文
posted @ 2010-01-27 16:29 Mo 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: Dim sText As String = "abcdefg1234567" Dim oMD5 As Cryptography.MD5 = Cryptography.MD5.Create Dim oBuffer() As Byte = System.Text.Encoding.Unicode.GetBytes(sText) oBuffer = oMD5.ComputeHash(oBuffer) D... 阅读全文
posted @ 2010-01-15 16:34 Mo 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Dim sText As String = "123456" Dim sKey As String = "MoMoMoMo" Dim sIV As String = "oMoMoMoM" Dim bKey() As Byte = System.Text.Encoding.UTF8.GetBytes(sKey) Dim bIV() As Byte = System.Text.Encoding.UTF... 阅读全文
posted @ 2010-01-15 16:03 Mo 阅读(168) 评论(0) 推荐(0) 编辑
摘要: System.Reflection.MethodBase.GetCurrentMethodMethodBase.Module.Name \\方法、函数所在程序的名称MethodBase.ReflectedType.Name \\方法、函数所在类的名称MethodBase.Name \\方法、函数的名称 阅读全文
posted @ 2010-01-08 16:25 Mo 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Imports System.Runtime.Serialization.Formatters.BinaryImports System.IO Dim oTools As BinaryFormatter = New BinaryFormatter \\序列化要用到的类 Dim oStream As FileStream = New FileStream("Store Object Path", F... 阅读全文
posted @ 2010-01-08 14:55 Mo 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 名称 解释 格式 a (Assemble) 逐行汇编 a [address] c (Compare) 比较两内存块 c range address d (Dump) 内存16进制显示 d [address]或 d [range] e (Enter) 修改内存字节 e address [list] f (fin) 预置一段内存 f range list g (Go) 执行程序 g [=a... 阅读全文
posted @ 2009-12-31 12:17 Mo 阅读(408) 评论(0) 推荐(0) 编辑
摘要: DOS批处理的字符串功能  批处理有着具有非常强大的字符串处理能力,其功能绝不低于C语言里面的字符串函数集。批处理中可实现的字符串处理功能有:截取字符串内容、替换字符串特定字段、合并字符串、扩充字符串等功能。下面对这些功能一一进行讲解。  【 1、截取字符串 】  截取字符串可以说是字符串处理功能中最常用的一个子功能了,能够实现截取字符串中的特定位置的一个或多个字符。举例说明其基本功能:  ===... 阅读全文
posted @ 2009-12-28 09:30 Mo 阅读(8748) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页