
.net
sikychen
这个作者很懒,什么都没留下…
展开
-
vb.net线程的创建
th = New Thread(New ThreadStart(AddressOf 函数名))th.Start()原创 2006-06-10 13:03:00 · 874 阅读 · 0 评论 -
用VS打包时判断某一个文件是否已存在,如果存在,则不安装
1. 打开 "启动条件编辑器" 2. 3.原创 2009-12-17 20:06:00 · 673 阅读 · 0 评论 -
c#中如何打开一个文件夹
System.Diagnostics.Process.Start("explorer.exe", "文件夹路径");原创 2009-12-14 21:50:00 · 852 阅读 · 0 评论 -
C#中获取文件夹的名称
可用DirectoryInfo来获取, 文件的信息可以用FileInfo来获取。原创 2009-11-25 20:20:00 · 909 阅读 · 0 评论 -
C#中拷贝文件夹含子文件夹
/// /// 拷贝文件平含子文件夹 /// /// /// private void CopyDirectoryIncludeSubDirectories(string sourcePath, string desPath) { string[] arrDirs =原创 2009-11-25 20:15:00 · 489 阅读 · 0 评论 -
[ 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。]错误的处理
在网上搜了一下, 大部份的处理方案为等待句柄创建成功while (!this.IsHandleCreated){ ;}, 对于此问题, 问题是这个this, 有时候此this不一定是Form, 有可能是其他控件。 在编程时要认清。原创 2009-11-24 20:44:00 · 2338 阅读 · 1 评论 -
VS2005中自动生成属性的方法
在vs 2005中, 如果手工书写一个类的属性的时, 总觉得有点罗嗦。 其实vs2005中提供了生成属性的方法,虽然还不尽人意,但总比没有好.下面列出二种方法: 输入prop后,按两个Tab键. 在代码编辑器中鼠标右键单击,选择Insert snippet...,选择Visual C#, 输入prop,按回车键.也可按快捷键ctrl+k+x 实现上面相同的功能以原创 2008-03-19 22:27:00 · 1951 阅读 · 1 评论 -
vb.net中的一个组合函数
Function GetDirect(ByVal lCurrPos As Long, ByVal sSource As String, ByVal sFind As String, ByVal bPre As Boolean) As Integer 往前查找字符串 Dim iLoop As Integer Dim iLength As Integer iLength原创 2006-08-01 15:13:00 · 868 阅读 · 0 评论 -
vb.net读取文本文件函数
Function getTxtString(ByVal mFileName As String) As String 读取文本文件 FileOpen(1, mFileName, OpenMode.Input, OpenAccess.Read, OpenShare.LockRead) Dim mLine As String Do While Not EOF(1)原创 2006-07-25 14:53:00 · 3041 阅读 · 0 评论 -
vb.net中的正则用法
Imports System.Text.RegularExpressionsPublic Class frmMain Inherits System.Windows.Forms.Form Dim oWebClient As New System.Net.WebClient Dim bSourceCode() As Byte Function GetSour原创 2006-07-22 14:49:00 · 1034 阅读 · 0 评论