??
在.net中有三种计时器,一是System.Windows.Forms命名空间下的Timer控件,它直接继承自Componet;二是System.Timers命名空间下的Timer类。
Timer控件:Timer控件只有绑定了Tick事件,和设置Enabled=True后才会自动计时,停止计时可以用Stop()控制,通过Stop()停止之后,如果想重新计时,可以用Start()方法来启动...
分类:
其他好文 时间:
2014-08-15 12:53:18
阅读次数:
240
现象:使用FormsAuthentication进行登录验证,在IE11客户端无法保存cookie解决方法:在web.config中的forms中增加cookieless="UseCookies"属性。原文地址:http://www.wlm.so/Article/Detail/lmb48dogzil...
分类:
其他好文 时间:
2014-08-15 12:24:48
阅读次数:
191
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, suc...
分类:
其他好文 时间:
2014-08-15 10:47:38
阅读次数:
255
win7
python2.7
django 1.6.5
因为使用数据库sqlite,项目中有models.py,所以使用方便的forms.ModelForm处理表单。
上传图像文件使用默认的defaultstorage。
1、settings.py里增加两行media的定义:
#Media
MEDIA_ROOT = 'e:/Depot/media'
MEDIA_URL = '/...
分类:
其他好文 时间:
2014-08-14 16:52:08
阅读次数:
318
关键代码:using System;using System.Collections.Generic;using System.Reflection;using System.Windows.Forms;namespace WinFormUtilHelpV2{ /// /// 基于.N...
Description
Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to r...
分类:
其他好文 时间:
2014-08-14 10:59:18
阅读次数:
265
概要Windows Forms 控件通常不是thread-safe(直接或间接继承于System.Windows.Forms.Control),因此.NET Framework为防止multithread下对控件的存取可能导致控件状态的不一致,在调试时,CLR-Debugger会抛出一个Invali...
分类:
其他好文 时间:
2014-08-13 21:39:57
阅读次数:
269
Windows Forms Leaks1.http://blogs.msdn.com/b/tess/archive/2008/02/04/net-debugging-demos-information-and-setup-instructions.aspx2.http://www.codeproje...
分类:
移动开发 时间:
2014-08-13 12:36:56
阅读次数:
260
Forms and their child elements should not use input names or ids that conflict with properties of a form, such as submit, length, or method. Name conf...
分类:
其他好文 时间:
2014-08-12 16:39:34
阅读次数:
230
目录ie11解决方案ie11在ie11下,访问服务器上的网站地址,莫名其妙的多出一串东西,这一串字符串是由于客户端禁用cookie造成sessionid无法写入cookie,所以就拼在url上面了:http://192.168.80.90:8003/(F(f7MHPrEbtCN867LFxf9VSL...
分类:
其他好文 时间:
2014-08-12 16:21:04
阅读次数:
307