ms access 2003 - 表单上的文本框:不跳转到任何文本框
好的,我将所有这些文本框添加到未绑定的表单上,每次您打开表单时,它都会跳转到第一个文本框,以便您可以在其中输入一些信息。
我该如何摆脱它,因为我不希望它在表单打开时自动跳转到第一个文本框...我根本不希望它在表单打开时跳转到任何文本框。
谢谢
Ok so I add all these text boxes on an unbound form, and everytime you open a form, it sort of jumps to the first text box so you can enter some information into it.
How do I get rid of that, because I do not want it to auto jump to the first text box when the form opens...i do not want it to jump to any text box when the form open at all.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你必须决定你想要它去哪里,因为它必须去某个地方。您可以控制 Tab 键顺序、设置焦点和自动 Tab 键的位置。
我刚刚检查过,最好的办法是将文本框的“启用”属性设置为“否”,将“锁定”属性设置为“是”。
You will have to decide where you do want it to go, because it has to go somewhere. You can control where will tab order, set focus, and autotab.
I have just checked, and the best thing to do is to set the textboxes Enabled property to No and the Locked property to Yes.
当然,默认行为是光标移动到按 Tab 键顺序设置的第一个控件中。
假设您仍然希望在表单中使用一些合理的 Tab 键顺序,则可以在表单标题中放置一个零长度文本框。删除制表位设置(属性表中的其他选项卡)。您不妨也将此框设置为透明。
然后在表单加载事件中,只需执行以下操作:
The default behavior is of course for the cursor to move into the first control that you’ve set up in the tab order.
Assuming you still want some sensible tab order in the form, then place a zero length text box in the forms headder. Remove the tab stop setting (other tab in property sheet). You might as well set this box transparent also.
Then in the forms on-load event, simply go:
如果我正确地阅读了您的问题,您似乎不希望表单上的任何文本框将焦点放在打开表单上。
在这种情况下,您需要做的是在表单上创建一个新的未绑定文本框,然后将其设置为表单 Tab 键顺序中的第一项。然后将未绑定文本框的大小调整为 0 高度和 0 宽度,使其不可见。
If I read your question correctly it seems that you do not want any of your textboxes on the form to have the focus on opening the form.
What you need to do in this instance is to create a new unbound textbox on your form, and then make this unbound the first item in the form's tab order. Then resize the unbound textbox to 0 height and 0 width, making it invisible.