A.WinForm中窗体显示 显示窗体可以有以下2种方法: Form.ShowDialog方法 (窗体显示为模式窗体) Form.Show方法 (窗体显示为无模式窗体) 2者具体区别如下: 1.在调用Form.Show方法后,Show方法后面的代码会立即执行 2.在调用Form.ShowDialog...
分类:
其他好文 时间:
2014-07-11 23:22:11
阅读次数:
241
默认情况下,验证提示信息用label元素来显示, 并且会添加css class, 通过css可以很方便设置出错控件以及错误信息的显示方式。/* 输入控件验证出错*/form input.error { border:solid 1px red;}/* 验证错误提示信息*/form label.err...
分类:
Web程序 时间:
2014-07-11 21:36:09
阅读次数:
259
1: 自定义表单提交设置submitHandler来自定义表单提交动作$(".selector").validate({submitHandler: function(form) { alert("验证通过"); }});如果需要提交表单,可以调用form.submit(); 或者$(form).a...
分类:
Web程序 时间:
2014-07-11 21:34:08
阅读次数:
282
1. [代码][JavaScript]代码 ?一、无提示刷新网页大家有没有发现,有些网页,刷新的时候,会弹出一个提示窗口,点“确定”才会刷新。而有的页面不会提示,不弹出提示窗口,直接就刷新了. 如果页面没有form,则不会弹出提示窗口。如果页面有form表单, a) 会弹出提示窗口 b) 不会...
分类:
编程语言 时间:
2014-07-11 12:58:16
阅读次数:
227
NerdTreeThe NERD tree allows you to explore your filesystem and to open files anddirectories. It presents the filesystem to you in the form of a tree ...
分类:
其他好文 时间:
2014-07-09 16:24:53
阅读次数:
193
using System;using System.Collections.Generic;using System.Reflection;using System.Runtime.InteropServices;using System.Text;using System.Windows.Form...
分类:
其他好文 时间:
2014-07-09 15:50:56
阅读次数:
199
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Autodesk.AutoCAD.DatabaseServices;using Autodesk.AutoCAD.Edito...
分类:
其他好文 时间:
2014-07-09 14:23:36
阅读次数:
187
form的autosize=true,formborderstyle=fixedsingletablelayoutpanel及其里面的容器的dock=fill,autosize=truelabel中的文字比较贴着窗体边缘时可以通过padding属性来调整因定宽度则可以使用tablelayoutpan...
1,Switch 语句内的表达式必须为: byte ,char ,short ,int 这四种之一。
2,使用final关键字修饰一个变量时,是指引用变量不能变,引用变量所指向的对象中的内容还是可以改变的。
例如,对于如下语句:
final StringBuffer a=new StringBuffer("immutable");执行如下语句将报告编译期错误:
a=new StringBu...
分类:
编程语言 时间:
2014-07-09 12:13:32
阅读次数:
231
表单:是网页上的一个特定的区域,这个区域是由一对<form>标记定义的。定义:<form><input>元素</form>(form元素是块级元素,其前后会产生折行。)表单能够包含input元素,比如文本字段、复选框、单选框、提交按钮等等。表单还可以包含menus、textare..
分类:
Web程序 时间:
2014-07-09 08:08:38
阅读次数:
415