Disabling all buttons on form

  • Thread starter Thread starter Michael
  • Start date Start date
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.
 
How about a visible button that is set to transparent with no caption and no
actions attached to it? Will that work for you?
 
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.
 
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 !
 
Back
Top