Form SetFocus or Visible Property

  • Thread starter robert demo via AccessMonster.com
  • Start date
R

robert demo via AccessMonster.com

What's the preferred way to simply switch between two open forms that are
maximized? I've heard that the form visible property can be used, whereas I
was wondering if the SetFocus property of the form wouldn't work better.

One caveat, Form 2 can be accessed from a number of other different forms.
If the visible property is used on Form 2, then code would have to be placed
in the other calling forms to ensure that Form 2 was visible when displayed.

Thanks.
 
M

Marshall Barton

robert said:
What's the preferred way to simply switch between two open forms that are
maximized? I've heard that the form visible property can be used, whereas I
was wondering if the SetFocus property of the form wouldn't work better.

One caveat, Form 2 can be accessed from a number of other different forms.
If the visible property is used on Form 2, then code would have to be placed
in the other calling forms to ensure that Form 2 was visible when displayed.


SetFocus is the preferred method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top