原创控件代码共享--日期选择控件
思路:实现日期年月日的选择
1、可以设定年的起止年份
2、排除不正确日期选择的可能
3、使用javascript实现控制
4、使用Text属性方便获取设置日期值
=================================
代码如下:
using System;
using System.Collections;
using System...
分类:
其他好文 时间:
2014-05-12 15:21:22
阅读次数:
246
c++继承方式
公有继承,父类的私有成员不可访问,通过父类的公有函数以及保护函数访问
私有继承,父类成员在派生类中为私有成员等。
初始化顺序先父类,再是派生类,析构刚好相反,
当用父类指针或者引用实现多态时,析构函数要声明成虚函数,不然只会调用父类的析构函数
#include
using namespace std;
class base{
private :float x;
publ...
分类:
编程语言 时间:
2014-05-12 14:16:40
阅读次数:
361
using System;using
System.Collections.Generic;using System.Linq;using System.Text;namespace
ConsoleApplication1{ class Program { static void Main(stri...
分类:
其他好文 时间:
2014-05-12 11:46:04
阅读次数:
215
using System.Security.Cryptography; //用的类 /// ///
DES加密/解密类。 /// public class DESEncrypt { public DESEncrypt() { ...
分类:
其他好文 时间:
2014-05-12 10:38:19
阅读次数:
235
1.Object-C也是面向对象的语言;2.#include
//#include是一个预处理指令3.using namespace std;
//std是命名空间,using决定了该源程序中的代码可以不用指定命名空间名为std4.const
常量只能读,不能修改,并且定义时必须初始化;5.由低精度...
分类:
编程语言 时间:
2014-05-12 09:07:01
阅读次数:
365
树上背包,说实话写起来很难受。看到别人写的代码时间都那么短,实在是自愧不如。#include
#include using namespace std;#define MAXV (3000)#define MAXE (MAXV - 1)int
Vefw[MAXE], Ve...
分类:
其他好文 时间:
2014-05-12 09:02:54
阅读次数:
178
首先是CDQ《基于连通性状态压缩的动态规划问题》论文上的题目:URAL 1519
Formula 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn
= 15; 6 const int H...
分类:
其他好文 时间:
2014-05-12 08:14:39
阅读次数:
433
本程序改编至网上下载的一个自定义控件,原控件是左右滚动效果,类似于跑马灯效果,由于项目需要,改编为上下滚动。前期没有实现自动折行,今天刚加上自动折行。using
System;using System.Collections;using System.ComponentModel;using Sys...
分类:
其他好文 时间:
2014-05-10 22:23:43
阅读次数:
486
1、用MySQLDriverCS连接MySQL数据库先下载和安装MySQLDriverCS,在安装文件夹下面找到MySQLDriver.dll,然后将MySQLDriver.dll添加引用到项目中。
using System; using System.Collections.Gen...
分类:
数据库 时间:
2014-05-10 19:12:23
阅读次数:
453
System.Threading.Tasks.Parallel是能够以并行的方式迭代数据集合(实现了IEnumerable的对象),它主要提供2个方法:For()和ForEach()
事例:
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Net.Consol...
分类:
其他好文 时间:
2014-05-10 08:59:10
阅读次数:
302