摘自:http://www.cnblogs.com/risen/archive/2008/01/15/1039751.htmlpublic partial
class AlertForm : Form { /* * 在类AlertForm定义的下方, * 我们创建用于显示的字符串和其颜色的变量, *...
在c++中,有2种class data
member:static和nostatic,以及3钟class member
function:static,nostatic和virtual。已知下面这个class Point声明:class Point{public:
Point(float xv...
分类:
编程语言 时间:
2014-05-12 21:43:54
阅读次数:
370
C# 导出Excel方法 先引用下System.IO;System.data;具体函数如下: 1
public static bool ExportCSV(DataTable dt, string fileNmae) 2 { 3 bool Ms...
分类:
其他好文 时间:
2014-05-12 21:37:43
阅读次数:
364
不求全面,先留个爪: TNotifyEvent = procedure(Sender:
TObject) of object; TMethod = record Code, Data: Pointer;
end;判断两个按钮的事件是否相等:procedure TForm1.Button5...
分类:
其他好文 时间:
2014-05-12 20:58:45
阅读次数:
432
/*1、线性表练习(1)从给定顺序表A中删除元素值在x到y(x=x&&A[i]max)
max=A[i]; else if(A[i]data=e; L->next=NULL; } else { if(i==1) ...
分类:
其他好文 时间:
2014-05-11 23:26:26
阅读次数:
384
假设叶面中有如下form:
...
如果页面要自动刷新,但该页面有Request.Form,那么通常会出现一个提示框,需要用户确定来提交数据,这就不是自动
刷新了。而对于监控或股票显示来说,不要用户干预又非常重要,下面就可以解决该问题:
var limit="0:60" //定义刷新时间
if (document.images){
var parselimi...
分类:
其他好文 时间:
2014-05-11 19:54:58
阅读次数:
314
读写本应用程序数据文件夹中的文件
此种方法读写的文件在/data/data/中
android 中提供了 openFileInput(String fileName)
和 openFileOutput(String fileName, int mode) 两个方法来读取本应用程序数据文件夹中的文件和向其写入。
openFileInput...
分类:
移动开发 时间:
2014-05-11 18:34:50
阅读次数:
480
第一次写记录文章,难免有不足之处;欢迎指出。1、新建一个mvc项目如:2、新建一个Test.cs 注意get,set方法不能简写using
System;using System.Collections.Generic;using System.Linq;using
System.Web;names...
分类:
Web程序 时间:
2014-05-11 17:18:55
阅读次数:
517
2.2 一个简单的插件示例 jQuery
插件能做任何事情,这个已经由浩如烟海的各类第三方插件如证明。小到只影响一个元素,大到改变多个元素的外观和行为,jQuery 的各种功能等你来扩展。 2.2.1
占位文本插件 为了维持一个form 的空间,很多时候一个字段的描述往往是省略的,取而代之的是用一个...
分类:
Web程序 时间:
2014-05-11 16:14:28
阅读次数:
409
一、方法1:假如有两个窗体,Form_A和Form_B,每个窗体里都有一个按键,Button_A和Button_B,要实现单击Button_A显示窗体B,那么窗体A中Buttom_A的单击事件的程序应该是:private
void button_A_Click(object sender, Even...