参考自:http://www.cnblogs.com/mohe/archive/2013/03/18/2966540.html实用场景,比如输入帐号和密码啦,输入搜索关键字啦.protected override void OnKeyDown(KeyEventArgs e){ if (e.Key ....
历经n多天,组合查询模板终于做完了,总结一下这几天的成果,和大家一起学习交流。
先看一下父窗体的关键代码:
父窗体代码:
Public Class frmComboQuery
Protected Overridable Sub frmComboQuery_Load(sender As Object, e As EventArgs) Handles MyBase.Load
...
分类:
其他好文 时间:
2014-06-25 00:20:41
阅读次数:
323
abstract class BaseAction extends ActionSupport {
protected DB db;
protected static Log log = LogFactory.getLog(BaseAction.class);
private long requestId;
private boolean readOnly = false;
priv...
分类:
其他好文 时间:
2014-06-24 20:10:32
阅读次数:
197
我们来看Interfaces ofport: OpenFlow port number for this interface. type: system: An ordinary network device, e.g. eth0 on Linux. internal: A simulated ne...
分类:
其他好文 时间:
2014-06-24 12:23:51
阅读次数:
316
1 、public ,对访问成员无限制,属于访问级别最高的权限。protected 访问包含类或者丛类派生类的类。internal 仅限于程序集,protected inernal 访问仅限于从包含类中派生的当前程序集或类型。private 仅限于范文包含的类型。2、 多态分为四种:强制,重载,参数...
分类:
Web程序 时间:
2014-06-24 12:09:18
阅读次数:
159
转载请注明出处:http://www.openext.org/2014/06/libvirt-error1在编译配置libvirt12.2时如果prefix不是usr目录,在使用libvirt创建VM则会出现ERROR:internal error Unable to locate libvirtd daemon in $PATH即便libvirtd所在目录已经加入了PATH。本人认为这是libv...
分类:
其他好文 时间:
2014-06-22 11:18:08
阅读次数:
260
没怎么用过这个新特性,其实也不算新啦,试试吧,现在静态类的继承很方便了
<?php
class A {
protected static $def = '123456';
public static function test() {
echo get_class(new static);
}
public static function test2() {
echo sta...
分类:
Web程序 时间:
2014-06-22 07:14:10
阅读次数:
298
转载请注明出处:http://www.openext.org/2014/06/virt-install-erro1使用virt-install安装vm的时候出现了一下错误,解决方法如下:$sudo ./create-vm-demo.shStarting install…ERROR internal error process exited while connecting to monitor: ...
分类:
其他好文 时间:
2014-06-22 06:34:56
阅读次数:
271
分两块:
1.取得摄像头采集的视频流
2.发送到服务器端
protected MediaRecorder mMediaRecorder;
private LocalServerSocket mLss = null;
private LocalSocket mReceiver, mSender = null;
mLss = new LocalServerSock...
分类:
移动开发 时间:
2014-06-22 00:59:44
阅读次数:
435
比如从A跳转到B,然后等待从B回传数据:
那么在A中这样跳转:
startActivityForResult(intent, 100);
后面那个requestCode我也搞不清楚作用是什么。但是要大于0;
然后在A中重写这个方法:
@Override
protected void onActivityResult(int requestCode, int resultC...
分类:
移动开发 时间:
2014-06-21 22:03:02
阅读次数:
356