当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 一、最小化窗口点击“X”或“
 

 

    摘要:限制输入时候只能是英文或数字 <input onkeyup="value=value.replace(/[\w]/g,´´) "onbeforepaste="clipboarddata.setdata(´text´,clipboarddata.getdata(´text´).replace......
    摘要:游戏交互设计顶尖大师 chris crawford 继 2003 年的杰作 chris crawford on game design ( http://www.informit.com/title/0131460994 )之后,于 2004 年底再出新作,全面展现游戏交互设计之精髓!chris crawford on interactive storytellingby chris crawfo......


几个C#编程的小技巧 (一)
一.最小化窗口

【程序编程相关:cppunit 使用安装 (二)

【推荐阅读:MissionsAgent(2)

点击“x”或“alt+f4”时,最小化窗口, 【扩展信息:ANT十五大最佳实践

如:

protected override void wndproc(ref message m)

{

const int wm_syscommand = 0x0112;

const int sc_close = 0xf060;

if (m.msg == wm_syscommand && (int) m.wparam == sc_close)

{

// user clicked close button

this.windowstate = formwindowstate.minimized;

return;

}

base.wndproc(ref m);

}

二.如何让foreach 循环运行的更快

foreach是一个对集合中的元素进行简单的枚举及处理的现成语句,用法如下例所示:

using system;

using system.collections;

namespace looptest

{

class class1

{

static void main(string[] args)

{

// create an arraylist of strings

arraylist array = new arraylist();


...   下一页
 ·学习struts(6)-struts视图组件    »显示摘要«
    摘要:1.视图组件的构成: html文档, jsp客户化标签, javascript和stylesheet, 多媒体文件 消息资源(resource bundle), actionform bean 2.dto数据传输对象 采用dto来传输数据的好处: 减少传输数据的冗余,提高传输效率。 有助于实现各个层之间的独立。 3.struts框架提供的dto:actionform bea......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE