上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: nt UserID = Convert.ToInt32(listView1.SelectedItems[0].Text); int res= UserAccessor.DelUserInfo(UserID); if (res 0) { int a = listView1.SelectedIndices[0]; //定位选中项索引 listView1.Items[a].SubItems[7].Text = "xxx"; //选中项应用 } 阅读全文
posted @ 2011-01-11 13:50 叮/当 阅读(269) 评论(0) 推荐(0) 编辑
摘要: C#.NET中关于结构与类之间的区别来源:eNet硅谷动力 类与结构的实例比较 类与结构的差别 如何选择结构还是类一.类与结构的示例比较:结构示例:publicstructPerson { stringName; intheight; intweight; publicbooloverWeight() { //implementsomething } }类示例: publicclassTestTime { inthours; intminutes; intseconds; publicvoidpasstime() { //implementationofbehavior } }调用过程:pub 阅读全文
posted @ 2011-01-08 01:37 叮/当 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://zhidao.baidu.com/question/96926630.html?si=1 using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Data... 阅读全文
posted @ 2011-01-07 16:56 叮/当 阅读(790) 评论(0) 推荐(0) 编辑
摘要: Visual Studio 2010 中的新增功能参考:http://msdn.microsoft.com/library/bb386063.aspx内容挺多 阅读全文
posted @ 2010-12-30 11:22 叮/当 阅读(244) 评论(0) 推荐(0) 编辑
摘要: C#实现MD5加密摘自:http://blog.csdn.net/shenghui188/archive/2010/03/28/5423959.aspx方法一首先,先简单介绍一下MD5MD5的全称是message-digest algorithm 5(信息-摘要算法,在90年代初由mit laboratory for computer science和rsa data security inc的ronald l. rivest开发出来, 经md2、md3和md4发展而来。MD5具有很好的安全性(因为它具有不可逆的特征,加过密的密文经过解密后和加密前的东东相同的可能性极小)引用using Sys 阅读全文
posted @ 2010-12-30 11:14 叮/当 阅读(178826) 评论(1) 推荐(4) 编辑
摘要: DataTable简介 (1)构造函数 DataTable() 不带参数初始化DataTable 类的新实例。 DataTable(string tableName) 用指定的表名初始化DataTable 类的新实例。 DataTable(string tableName, string tableNamespace) 用指定的表名和命名空间初始化DataTable 类的新实例。 (2) 常用属性 CaseSensitive 指示表中的字符串比较是否区分大小写。 ChildRelations 获取此DataTable 的子关系的集合。 Columns 获取属于该表的列的集合。 Constrai 阅读全文
posted @ 2010-12-30 10:46 叮/当 阅读(570) 评论(0) 推荐(0) 编辑
摘要: Delphi TStrings是一个抽象类,在实际开发中,是除了基本类型外,应用得最多的。 常规的用法大家都知道,现在来讨论它的一些高级的用法。 先把要讨论的几个属性列出来: 1、CommaText 2、Delimiter & DelimitedText 3、Names & values & valueFromIndex 先看第一个:CommaText。怎么用呢?用代码说话: const constr :String = 'aaa,bbb,ccc,ddd'; var strs :TStrings; i :Integer; begin strs := TStringList.Create; st 阅读全文
posted @ 2010-12-13 01:57 叮/当 阅读(13773) 评论(1) 推荐(0) 编辑
摘要: 一、INI文件的结构: ; 注释 [小节名] 关键字=值 INI文件允许有多个小节,每个小节又允许有多个关键字, “=”后面是该关键字的值。 值的类型有三种:字符串、整型数值和布尔值。其中字符串存贮在INI文件中时没有引号,布尔真值用1表示,布尔假值用0表示。 注释以分号“;”开头。 二、定义 1、在Interface的Uses节增加IniFiles; 2、在Var变量定义部分增加一行: myinifile:Tinifile; 然后,就可以对变量myinifile进行创建、打开、读取、写入等操作了。 三、打开INI文件 Filename:=ExtractFilePath(Paramstr(0) 阅读全文
posted @ 2010-12-11 17:18 叮/当 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 在Delphi中的Record类型中,与之C语言对应的即是结构体类型(struct),也可能是为了符合C语言或C++程序员的习惯,对于它在Delphi中的应用存在的一些问题进行初步的说明。在Delphi中的记录体类型有两种方式定义Type RecTest = record (packed) ID :integer; Name :string; Descript:string; end;之两种类型的主要区别在于在内存中的存放,Packed是紧缩类型的,可以节省内存空间与存放的空间,但是它定义好了对应的长度,所以不太适合存放不定长的数据,如string类型的数据;同时在使用记录体类型时特别要注意的 阅读全文
posted @ 2010-12-05 12:18 叮/当 阅读(16237) 评论(1) 推荐(0) 编辑
摘要: 继承关系: TObject → TPersistent → TComponent TApplication组件的属性: Active AllowTesting DialogHandle ExeName Handle HelpFile Hint HintColor HintHidePause HintPause HintShortPause Icon MainForm ShowHint ShowMainForm Terminated Title UpdateFormatSettings UpdateMetricSettings 从TCompnent继承来的: ComObject Comp 阅读全文
posted @ 2010-11-29 17:15 叮/当 阅读(1514) 评论(0) 推荐(2) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页