佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 914|回复: 1

有关visual basic 6 的问题.....

[复制链接]
发表于 28-10-2008 01:29 AM | 显示全部楼层 |阅读模式
不好意思,小弟才刚刚接触vb6,算是菜鸟一个,我有几个问题,希望有人可以帮帮我:

1. 如果我有两个textbox:t1 和t2.  我把t1的maxlength调至3,请问我要怎样在t1输入3个数字后,自动跳至t2 的textbox?

2.如果我有一个command button:cmd1 . 请问要怎样把right ctrl或任何一个按键 设定为启动cmd1 的特别键?

3.要怎样才能够reload整个软件呢?我不要restart的。


回答任何一题都可以,pls......
回复

使用道具 举报


ADVERTISEMENT

发表于 28-10-2008 06:32 PM | 显示全部楼层
1) at t1.textchanged
   If t1.Length = 3 then
       t2.focus
   end if

2) This is much more complicated, because you wont know which object will be focused, and the stupid way is to add a keydown event to all the object inside your application. The smart way is, having a timer, and this timer will detect the key press by user using windows dll (search around online for the name of dll), when the desired key was press, invoke the function. But there are certain things you need to consider, example, what happen if your application is not active application?

3) why you need to reload the entire application? please specify reason.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 23-12-2025 02:13 AM , Processed in 0.101413 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表