private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { TextBox txt = sender as TextBox; //屏蔽非法按键,只能输入小数 ...
第一个事实:某类中可以这么声明定义两个函数,可以重载(overload)void pa(){ cout<<"a"<<endl;}void pa() const{ cout<<"b"<<endl;}上面的写法是正确的。基于这个事实,我思考了一下它的机制。试验得出,第二个事实:普通函数(不是...
分类:
编程语言 时间:
2015-09-22 16:31:11
阅读次数:
137
1 public static void CreateValidateGraphic(string validateCode, HttpContext httpContext) 2 { 3 Bitmap img = new Bitmap((int)Math.Ceiling(...
分类:
其他好文 时间:
2015-09-22 16:23:38
阅读次数:
217
环境java 1.7HtmlUnit 2.18eclipse 4.4.2maven 配置: net.sourceforge.htmlunit htmlunit 2.18 java代码public void loginBa...
分类:
Web程序 时间:
2015-09-22 16:00:05
阅读次数:
198
加上以下代码,可以让系统的分割线位置置于起始位置#pragma mark --- 设置分割线位置为起始位置-(void)viewDidLayoutSubviews{ if ([self.tableView respondsToSelector:@selector(setSeparatorInset:...
分类:
其他好文 时间:
2015-09-22 14:32:29
阅读次数:
112
// 静态方法不能被覆盖 /*class Super{ static String name(){ return "mother"; } } class Test02{ public static void main(String[] args){ Super s3 = new Super()...
分类:
编程语言 时间:
2015-09-22 14:30:55
阅读次数:
121
private void getOverflowMenu() { ViewConfiguration viewConfig = ViewConfiguration.get(this); try { Field overflowMenuField = ViewConfiguration.cl...
分类:
移动开发 时间:
2015-09-22 14:19:16
阅读次数:
163
class Program { public void dayin() { Console.WriteLine("hollo world"); } /// /// 累加求和 /// ...
分类:
其他好文 时间:
2015-09-22 12:57:11
阅读次数:
213
使用WorkbookFactory打开Workbook @Test
????public?void?openWorkbookByWorkbookFactory(){
????????FileInputStream?fileInputStream?=?null;
????????Workbook?workbook?=?null;...
分类:
编程语言 时间:
2015-09-22 11:37:16
阅读次数:
187
private void DeviceSetText(TextBox textBox, string text) { //处理text的显示值 if (text != "0") //小数位后保留2位 { ...
分类:
其他好文 时间:
2015-09-22 10:20:43
阅读次数:
296