>First, the question is why do you have to move the focus?
>This is a rather unusual thing to do, unless you are leaving
>the focus on the second form for user input (in which case
>there is no prblem).
I am trying to create a virtual keyboard so that my application can be run on
a tablet pc. I would provide the user with a keyboard than rely on
Microsoft’s keyboard. So the focus goes:
1. from my virtual keyboard
2. to my text box on the second form
3. back to my virtual keyboard.
Also, my keyboard allows the user to Tab from one control to another. In
order to accomplish this, my second form has to receive the focus.
The echo method does not work, the form receiving the focus still has its
caption bar highlighted.
Marshall Barton - 23 Oct 2005 23:45 GMT
>>First, the question is why do you have to move the focus?
>>This is a rather unusual thing to do, unless you are leaving
[quoted text clipped - 14 lines]
>The echo method does not work, the form receiving the focus still has its
>caption bar highlighted.
Tough problem.
If Echo False sitll allows screen updates to be displayed, I
think you're out of luck here. Setting the focus to a
control on a form requires that the form be repainted. This
in turn brings the form to the front, etc. so I don't see
how you can avoid the flicker.
Maybe someone else has a better thought?

Signature
Marsh
MVP [MS Access]
Jesper Fjølner - 24 Oct 2005 00:33 GMT
>>I am trying to create a virtual keyboard so that my application can be run
>>on
[quoted text clipped - 9 lines]
>>The echo method does not work, the form receiving the focus still has its
>>caption bar highlighted.
I seem to be able to move the focus from on text boxt to the next on another
form using
(with the forms keypreview set to true).
Forms!entryform!textbox.setfocus
Only the cursor is not showing on the in inactive form.
If I, with the mouse, activate the entry form the cursor is in the right
box.
When you say "Tab from one form to anther" I assume you mean pressing the
tab-button on your homemade keyboard?
Jesper
Ken Snell [MVP] - 24 Oct 2005 01:07 GMT
Sometimes DoCmd.Echo does not work well, but Application.Echo does work ok.
Which one was tried?

Signature
Ken Snell
<MS ACCESS MVP>
>>>First, the question is why do you have to move the focus?
>>>This is a rather unusual thing to do, unless you are leaving
[quoted text clipped - 24 lines]
>
> Maybe someone else has a better thought?
lcon2 - 24 Oct 2005 01:19 GMT
>Sometimes DoCmd.Echo does not work well, but Application.Echo does work ok.
>
>Which one was tried?
Both of them.
MacDermott - 24 Oct 2005 01:32 GMT
How about implementing the virtual keyboard as a subform instead of a
separate form?
> >First, the question is why do you have to move the focus?
> >This is a rather unusual thing to do, unless you are leaving
[quoted text clipped - 13 lines]
> The echo method does not work, the form receiving the focus still has its
> caption bar highlighted.
lcon2 - 24 Oct 2005 11:50 GMT
>How about implementing the virtual keyboard as a subform instead of a
>separate form?
That would work, however I would have to go back and rework my entire
application, and I also don't think it looks as pretty.
MacDermott - 24 Oct 2005 13:20 GMT
When I developed a virtual keyboard for a VB6.0 application, I made it as a
separate ActiveX control - that worked pretty well.
ActiveX controls developed in VB6.0 can, with some limitations, be used on
Access forms. However, it rather sounds as if you have fixed on one idea
and aren't too interested in other approaches.
> >How about implementing the virtual keyboard as a subform instead of a
> >separate form?
>
> That would work, however I would have to go back and rework my entire
> application, and I also don't think it looks as pretty.
lcon2 - 24 Oct 2005 19:51 GMT
> However, it rather sounds as if you have fixed on one idea
>and aren't too interested in other approaches.
I am interested in any approach that will fit my needs. The subform is a
good idea, except that quite a few of my forms are Continuous Forms.
Subforms do not work
Igor - 25 Oct 2005 02:50 GMT
Subforms can be placed in a header or footer of a continuous form just fine...
- Igor
> > However, it rather sounds as if you have fixed on one idea
> >and aren't too interested in other approaches.
>
> I am interested in any approach that will fit my needs. The subform is a
> good idea, except that quite a few of my forms are Continuous Forms.
> Subforms do not work