Disabling all buttons on form

M

Michael

I want to disable all buttons on a form during image processing and
re-enable them after processing. However, I can't disable a button if it has
focus so I need to set focus to something else on the form but since there
are only unbound fields (where the images get placed) there is no object
anywhere else to set focus. I've tried a non-visible dummy-button but Access
won't let me set focus to it. Could someone suggest a way round it.

Thanks,

Michael.
 
J

John Spencer (MVP)

How about a visible button that is set to transparent with no caption and no
actions attached to it? Will that work for you?
 
J

John Spencer (MVP)

I actually have used your solution in the past and may well do so in the future.
The only problem for me has been finding the <expletive> textbox control in the
design mode (or even realizing that it is there). With the button approach, I
do stand an easier chance of seeing the control.
 
K

Ken Snell

If ya know what you're lookin' for, and have "great peepers" (getting old,
meaning me too!, makes this more difficult), it's not too bad. Actually,
what I do is put the tiny textbox right at the corner of some other control,
and then put a comment in the code that tells me why I have that control on
the form and where it is !
 

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