将焦点带回形式的问题 [英] Problems bringing focus back to form

查看:119
本文介绍了将焦点带回形式的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是这个小组的新手,所以对我很轻松!


我目前使用的数据库已经有了一段时间不停地唠叨一下

我想知道是否有人可以帮忙整理出来。从开始屏幕

可以选择搜索特定记录。搜索条件是

输入到文本框中。一个表格显示在开头

屏幕的顶部,其中包含查询结果,然后为另一个

搜索提供一个选项。这导致打开表单关闭,但是必须单击

打开屏幕上的文本框才能将焦点带回搜索

框。有人可以告诉你如何在屏幕出现后立即在光盘中闪烁,而不必点击吗?


MTIA

MD

Hi

I''m new to this group so go easy on me!

I currently use a database that has had one constant niggle for a while and
I was wondering if anybody can help sort it out. From an opening screen
there is an option to search for a particular record. The search criteria is
entered into a text box. A form is presented over the top of the opening
screen with the query results and an option is then given for another
search. This results in the open form closing down, but the text box on the
opening screen has to be clicked in to bring the focus back to the search
box. Could somebody please advise how the cursor can be made to flash in the
box immediately the screen is presented, without having to click?

MTIA

MD

推荐答案

Martin,

''激活'上的一些代码'-event会为你做诀窍


私人子Form_Activate()

我!Searchbox.setfocus

结束子


-

希望这有帮助

Arno R

" Martin Dennett" < MD ** @ ntlworld.com> schreef in bericht

新闻:ay ******************** @ newsfep2-win.server.ntli.net ...
Martin,
Some code on the ''On activate''-event will do the trick for you

Private Sub Form_Activate()
Me!Searchbox.setfocus
End sub

--
Hope this helps
Arno R
"Martin Dennett" <md**@ntlworld.com> schreef in bericht
news:ay********************@newsfep2-win.server.ntli.net...


我是这个小组的新手,所以对我很轻松!

我目前使用的数据库已经持续了一段时间和
我想知道是否有人可以帮忙整理出来。从开始屏幕
可以选择搜索特定记录。搜索条件是
输入文本框。在开头
屏幕的顶部显示一个表单,其中包含查询结果,然后为另一个搜索提供一个选项。这会导致打开表单关闭,但必须单击
打开屏幕上的文本框才能将焦点返回到搜索框。有人可以建议如何在屏幕显示时立即在光盘中闪光,而不必点击吗?

MTIA

MD
Hi

I''m new to this group so go easy on me!

I currently use a database that has had one constant niggle for a while and
I was wondering if anybody can help sort it out. From an opening screen
there is an option to search for a particular record. The search criteria is
entered into a text box. A form is presented over the top of the opening
screen with the query results and an option is then given for another
search. This results in the open form closing down, but the text box on the
opening screen has to be clicked in to bring the focus back to the search
box. Could somebody please advise how the cursor can be made to flash in the
box immediately the screen is presented, without having to click?

MTIA

MD



或者,只需将搜索框放在View Tab Order中。


TC

" Arno R" < AR **************** @ tiscali.nl>在留言中写道

news:3f ********************** @ dreader2.news.tiscal i.nl ...
Or, just put the searchbox first in View Tab Order.

TC
"Arno R" <ar****************@tiscali.nl> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
Martin,
关于''激活''的一些代码 - 事件将为你做诀窍

私人子Form_Activate()
我!搜索框.setfocus
结束子

- 希望这有帮助
Arno R

" Martin Dennett" < MD ** @ ntlworld.com> schreef in bericht
新闻:ay ******************** @ newsfep2-win.server.ntli.net ...
Martin,
Some code on the ''On activate''-event will do the trick for you

Private Sub Form_Activate()
Me!Searchbox.setfocus
End sub

--
Hope this helps
Arno R
"Martin Dennett" <md**@ntlworld.com> schreef in bericht
news:ay********************@newsfep2-win.server.ntli.net...


我是这个小组的新手,所以对我很轻松!

我目前使用的数据库已经持续了一段时间n $ $ $ b我想知道是否有人可以帮忙整理出来。从开始屏幕
可以选择搜索特定记录。搜索
条件输入到文本框中。在开头
屏幕的顶部显示一个表单,其中包含查询结果,然后为另一个搜索提供一个选项。这导致打开表单关闭,但是必须单击打开屏幕上的
上的文本框以将焦点返回到
搜索框。有人可以建议如何在屏幕显示时立即在
中闪烁光标,而不必点击?

MTIA

MD
Hi

I''m new to this group so go easy on me!

I currently use a database that has had one constant niggle for a while and I was wondering if anybody can help sort it out. From an opening screen
there is an option to search for a particular record. The search criteria is entered into a text box. A form is presented over the top of the opening
screen with the query results and an option is then given for another
search. This results in the open form closing down, but the text box on the opening screen has to be clicked in to bring the focus back to the search box. Could somebody please advise how the cursor can be made to flash in the box immediately the screen is presented, without having to click?

MTIA

MD




你好TC,

我猜测OP命中Enter或点击另一个按钮查看结果。

由于表格保持打开状态,因此只有taborder对我的想法没有帮助。


Arno R


" TC" < a@b.c.d> schreef in bericht news:1070257697.353471@teuthos ...
Hi TC,
I had a guess that the OP hit Enter or clicked another button to view the results.
Since the form stays open, just taborder won''t help I think.

Arno R

"TC" <a@b.c.d> schreef in bericht news:1070257697.353471@teuthos...
或者,只需将搜索框放在View Tab Order中。

TC

" Arno R < AR **************** @ tiscali.nl>在消息中写道
新闻:3f ********************** @ dreader2.news.tiscal i.nl ...
Or, just put the searchbox first in View Tab Order.

TC
"Arno R" <ar****************@tiscali.nl> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
马丁,
关于''激活''的一些代码 - 事件将为你做诀窍

私人子Form_Activate()
我!Searchbox.setfocus
- 希望这有帮助
Arno R

" Martin Dennett" < MD ** @ ntlworld.com> schreef in bericht
新闻:ay ******************** @ newsfep2-win.server.ntli.net ...
Martin,
Some code on the ''On activate''-event will do the trick for you

Private Sub Form_Activate()
Me!Searchbox.setfocus
End sub

--
Hope this helps
Arno R
"Martin Dennett" <md**@ntlworld.com> schreef in bericht
news:ay********************@newsfep2-win.server.ntli.net...


我是这个小组的新手,所以对我很轻松!

我目前使用的数据库已经有一段时间不知不觉了,我想知道如果有人可以帮助解决它。从开始屏幕
可以选择搜索特定记录。搜索条件输入到文本框中。在开头
屏幕的顶部显示一个表单,其中包含查询结果,然后为另一个搜索提供一个选项。这会导致打开表单关闭,但必须单击打开屏幕上的文本框以将焦点返回到搜索框。有人可以建议如何在屏幕出现时立即在框中闪光,而不必点击吗?

MTIA

MD
Hi

I''m new to this group so go easy on me!

I currently use a database that has had one constant niggle for a while and I was wondering if anybody can help sort it out. From an opening screen
there is an option to search for a particular record. The search criteria is entered into a text box. A form is presented over the top of the opening
screen with the query results and an option is then given for another
search. This results in the open form closing down, but the text box on the opening screen has to be clicked in to bring the focus back to the search box. Could somebody please advise how the cursor can be made to flash in the box immediately the screen is presented, without having to click?

MTIA

MD










这篇关于将焦点带回形式的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆