19472.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 28 行
HTML
28 行
<html> <head> <title>Re: 如何转换setfocus</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>Re: 如何转换setfocus</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:chaojen2@ms38.hinet.net">Buier</a> on September 30, 1999 at 01:58:31:<p>In Reply to: <a href="19464.html">如何转换setfocus</a> posted by 小玉 on September 29, 1999 at 21:34:25:<p>: 请问我目前有四个text<br>: txt1,txt2.txt3,txt4<p>: 如何做才能在txt1按enter时游标停在txt2上<br>: 在txt2按enter时游标停在txt3上<br>: 以此类推呢?<p>: 以上是我的程式内容,请问错在哪里呢?<br>: 请各位高手帮帮忙。<br>你的程式应该没错,你可以试下面的程式看看(两个textbox).<br>Private Sub Text1_KeyPress(KeyAscii As Integer)<br> Form1.Caption = KeyAscii<br> If KeyAscii = 13 Then<br> Text2.SetFocus<br> End If<br>End Sub<br>Private Sub Text2_KeyPress(KeyAscii As Integer)<br> Form1.Caption = KeyAscii<br> If KeyAscii = 13 Then<br> Text1.SetFocus<br> End If<br>End Sub<p><br><ul><li><a href="http://netcity3.web.hinet.net/userdata/chaojen2/">VB 心得交流网</a></ul><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 19472--><!--top: 19480--><li><a href="19480.html">建议</a> <b>SuBird</b> <i>09:18:44 9/30/99</i>(<!--responses: 19480-->0)<ul><!--insert: 19480--></ul><!--end: 19480--></ul><!--end: 19472--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?