My solution

M

Mark A. Sam

Using a popup (mode) form is beneficial when you don't want it to become
lost behind another form while it is open. Since my procedure will work the
way I like only when the form is open in Normal mode, my solution is to
close the form when it loses the focus. Then click the button to display
it again. It turns out that it makes for a better working app and I don't
lose site of my open form. Note the close method won't work when a form is
in popup mode, becuase a popup form can't receive the focus.
 
M

Mark A. Sam

I meant this to be posted as a reply to the thread, "Movesize not
positioning form properly", posted by me on Dec 26.
 
L

Linq Adams via AccessMonster.com

We need to see the code you're trying to use to accomplish this.

A Popup form certainly ***can*** receive focus, but it's subject to the same
rule as any other form.

A form can only receive focus (and subsequently lose focus) if if holds no
controls that can receive focus! In other words, if there's a textbox or a
combobox or a command button on the form, and it's enabled, the form itself
cannot receive focus nor lose focus, so using these events in code won't work.
 
M

Mark A. Sam

Linq, you are right. I didn't think of that, but for my purpose, the form
does have enabled controls.
 

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