HEY, MICROSOFT!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Geoff (geoff_at_nospam.com)
Date: 10/25/04


Date: Mon, 25 Oct 2004 17:07:12 +0100

Nigel

Thanks for replying.

In the MSForms object library, the Control object has a SetFocus
method, but the Page object doesn't. (The Page object doesn't have an
Activate method either.)

I'm still working on it, but at this stage, the error message I'm
getting (that the control's SetFocus method has failed because the
control is invisible) seems to indicate why my code works when the
user is looking at the page on which the control resides when clicking
the command button and fails when the user is looking at a different
page. It's a pity that it appears impossible to activate or set the
focus on a page as well as on a control.

So, Microsoft, please, (unless there's a different way), can we have a
SetFocus method for the Page object of a Multipage control?

Thanks, Nigel. I'll keep the group posted!
Geoff



Relevant Pages

  • Re: Setfocus - Error 2108
    ... Not really sure what the purpose of all this is, but you cannot SetFocus to ... > Well how do I clear the events for the control. ... >> - the KeyDown, KeyPress, KeyUp, and Error events of ... rather than allenbrowne at mvps dot org. ...
    (microsoft.public.access.forms)
  • Re: Setfocus - Error 2108
    ... well I fixed this by changing the event to AfterUpdate and now SetFocus ... > Well how do I clear the events for the control. ... > Jarryd. ... >> - the KeyDown, KeyPress, KeyUp, and Error events of ...
    (microsoft.public.access.forms)
  • Re: ON_CONTROL_REFLECT
    ... man nicht selber versenden soll! ... zum Control, und es freute sich darüber, seither funktioniert alles, bei ... // CPropTreeItemButton message handlers ... Das senden von WM_SETFOCUS hat nämlich nichts mit SetFocus zu ...
    (microsoft.public.de.vc)
  • RE: SetFocus not working properly
    ... MsgBox "The SKU field must be numeric. ... ItemDescription = .Fields ... This SetFocus line stubbornly refuses to work. ... the control is cleared, but the focus moves to the next control no matter ...
    (microsoft.public.access.formscoding)
  • SetFocus not working as I would expect
    ... Sub txtbxStartTime_AfterUpdate ... Don't need to operate on empty inputs. ... What happens is that the focus ends up on the next tab stop control ... I have tried the SetFocus in the called NUMBERCHECK function, ...
    (microsoft.public.excel.programming)