摘要:
进来频繁使用系统目录,但是读取之后保存本来是没有问题的,但是用了组件里面的打开,保存,选择路径,就出现了问题。后来进过尝试发现,打开和保存会修改当前程序目录,也就是修改Environment.CurrentDirectory的值,但是folderBrowserDialog1组件(用来选择路径)不会改变当前路径Environment.CurrentDirectory的值。如果使用Applicatio... 阅读全文
随笔档案-2008年06月
c#,winform,验证输入内容,文本框,长度,errorprovider组件,方便,快捷
2008-06-29 14:48 by Virus-BeautyCode, 9505 阅读, 收藏, 编辑
摘要:
这几天都在写一些类似的东西,就想着偷偷懒,省了不少的东西,Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /**//// /// 验证输入框的输入内容 /// /// 输入框控件 /// 最... 阅读全文
c#,winform,验证输入内容,文本框,长度,errorprovider组件,方便,快捷
2008-06-29 14:38 by Virus-BeautyCode, 1028 阅读, 收藏, 编辑
摘要:
这几天都在写一些类似的东西,就想着偷偷懒,省了不少的东西,Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /**//// /// 验证输入框的输入内容 /// /// 输入框控件 /// 最... 阅读全文
c#,winform,combobox联动
2008-06-26 16:07 by Virus-BeautyCode, 14711 阅读, 收藏, 编辑
摘要:
C# codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->private void RegisterForm_Load(object sender, EventArgs e){SqlConnection con = new SqlConnec... 阅读全文
c#,NHibernate,ASP.NET2.0,Winform
2008-06-18 00:26 by Virus-BeautyCode, 2192 阅读, 收藏, 编辑
摘要:
using System;using System.Collections;namespace Model{ Person#region Person /**//// /// Person object for NHibernate mapped table 'Person'. /// public class Person { Me... 阅读全文
c#,委托,回调,事件,系列,一,
2008-06-03 22:55 by Virus-BeautyCode, 2430 阅读, 收藏, 编辑
摘要:
C#调用C++回调函数的问题C++的回调函数中有一个参数是,是返回一个字符串,原则如下: typedef void (*TDataEvent)(char *AData ,int ALen); 其中char *AData是从DLL中返回一个字符串,串的内存已经在DLL中分配了 下面中我在C#中定义的委托 public delegate void TDataEvent(Byte[] AData, int ALen); 下面是回调函数的设置代码: Event = new clReceivelDllPoxy.TDataEvent(getDate); ReceDllPoxy 阅读全文
c#调用c++写成的dll文件,返回char*,返回数组,用ref接收,byte[]
2008-06-02 18:07 by Virus-BeautyCode, 13001 阅读, 收藏, 编辑
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// Inclusion guard#ifndef _DLLTUT_DLL_H_#define _DLLTUT_DLL_H_// Make our life easier, if DLL_EXPORT i... 阅读全文