上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页
摘要: 1:js 字符串长度限制、判断字符长度、js限制输入、限制不能输入、textarea 长度限制 2.:js判断汉字、判断是否汉字 、只能输入汉字 3:js判断是否输入英文、只能输入英文 4:js只能输入数字,判断数字、验证数字、检测数字、判断是否为数字、只能输入数字 5:只能输入英文字符和数字 6: js email验证 、js 判断email 、信箱/邮箱格式验证 7:js字符过滤,屏蔽关键字 ... 阅读全文
posted @ 2009-06-08 13:38 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 本文介绍如何创建一个可用于任何Web页面的“正则表达式库”——通过将表单验证代码保存为一个独立的文件,我们可以避免为不同表单重写类似的验证代码,只需在HTML页面中包含这个库文件即可。    一、HTML元素属性与JavaScript对象属性    我们知道,HTML允许我们为元素指定自定义属性。如对于表单中的文本输入框元素,我们可以给它指定一个称为... 阅读全文
posted @ 2009-06-08 13:36 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 在DELPHI中经常用到网格控件(DBGrid)显示数据,网格控件只提供了每一行的颜色属性,但在实际应用中我们经常希望它按某一行某一项的取值不同显示不同的颜色,甚至在网格中的单位表格项中显示出图像等等,下面我们以一个简单的例子来告诉大家怎么做。  比如我们要求如果春季有退书用红色表示,如果秋季有退书用黄色表示       利用DBGrid自绘功能可以很容易地实现这样的要求。用户可以处理DBGrid... 阅读全文
posted @ 2009-06-05 12:09 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(922) 评论(0) 推荐(0) 编辑
摘要: http://delphi.about.com/od/usedbvcl/l/aa081903a.htm 阅读全文
posted @ 2009-06-04 17:13 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(161) 评论(0) 推荐(0) 编辑
摘要: If you are developing database applications with tables containing MEMO fields, you'll notice that, by default, the TDBGrid component does not show the contents of a MEMO field inside a DBGrid cell. T... 阅读全文
posted @ 2009-06-04 16:49 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(372) 评论(0) 推荐(0) 编辑
摘要: Adjusting DBGrid column widths automatically Here's a handy method to automatically fix the size of TDBGrid columns (at run-time) to fit the DBGrid width (remove the unfilled space at the right edge o... 阅读全文
posted @ 2009-06-04 16:37 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(450) 评论(2) 推荐(0) 编辑
摘要: The TListBox Delphi component displays a collection of items in a scrollable list. Delphi makes it easy to program dragging and dropping into your applications. Here's how to allow a user to rearrange... 阅读全文
posted @ 2009-06-04 15:58 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Enhancing the TDBNavigator component with modified graphics (glyphs), custom button captions, and more. Exposing the OnMouseUp/Down event for every button. "Ok, the DBNavigator does its job of navigat... 阅读全文
posted @ 2009-06-04 15:55 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 你想把DbNagvator图片去掉换成文字 可以这样1. form1摆一个DBNavigator12\定义typeTMyNavgator = class(TDBNavigator);3.FormCreat时候//去掉图片TMyNavgator(DBNavigator1).Buttons[nbFirst].Glyph.Assign(nil);//汉字TMyNavgator(DBNavigator1)... 阅读全文
posted @ 2009-06-04 15:49 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 在DBNavigator中BeforAction事件中写如下代码 procedure TForm1.DBNavigator1BeforeAction(Sender: TObject; Button: TNavigateBtn); begin if Button=nbDelete then begin if MessageBox(Handle,'确实要删除么?','系统提示',MB_YE... 阅读全文
posted @ 2009-06-04 15:41 DELPHI&.NET初学者[TECSOON WENDAY] 阅读(689) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页