如何让程序在 windows 启动时自动执行
有以下二个方法:
方法1: 直接将快捷方式放到启动群组中。
方法2:
在注册档 hkey_local_machine 中找到以下机码:\software\microsoft\windows\currentversion\run
新增一个字串值,包括二个部份:
1. 名称部份:自己取名,可设定为 ap 名称。
2. 资料部份:则是包含 '全路径档案名称' 及 '执行参数'
例如:
value name = notepad
value data = c:\windows\notepad.exe
在 textbox 中如何限制只能输入数字
参考下列程序:
sub text1_keypress(keyascii as integer)
if keyascii < 48 or keyascii > 57 then
keyascii = 0
end if
end sub
private sub text1_keypress(keyascii as integer)
dim stemplate as string
stemplate = "!@#$%^&*()_+-=" '用来存放不接受的字符
if instr(1, stemplate, chr(keyascii)) > 0 then
keyascii = 0
end if
end sub
private sub text1_gotfocus()
text1.selstart = 0
text1.sellength = len(text1)
end sub
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器