|
查看: 912|回复: 1
|
有关visual basic 6 的问题.....
[复制链接]
|
|
|
不好意思,小弟才刚刚接触vb6,算是菜鸟一个,我有几个问题,希望有人可以帮帮我:
1. 如果我有两个textbox:t1 和t2. 我把t1的maxlength调至3,请问我要怎样在t1输入3个数字后,自动跳至t2 的textbox?
2.如果我有一个command button:cmd1 . 请问要怎样把right ctrl或任何一个按键 设定为启动cmd1 的特别键?
3.要怎样才能够reload整个软件呢?我不要restart的。
回答任何一题都可以,pls...... |
|
|
|
|
|
|
|
|
|
|
发表于 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. |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|