Totally lock form

M

Mariebob

Hi,

I am running code in the current event of a form and I want to prevent the
user to do anything until it's over (not click on any control or on the form
either).

Is there an easy way to do it?

TIA,
 
J

James

Hi,

I am running code in the current event of a form and I want to prevent the
user to do anything until it's over (not click on any control or on the form
either).

Is there an easy way to do it?

TIA,

Hi

You could check out application.echo to freeze the screen whilst your
code does what you want it to...

Regards
 
M

Mariebob

Well, I tried, but the problem is that my form has to be visible and be
refreshed... I just don't want the user to be able to click on it...

Anybody has an idea ?
 
R

Rick Brandt

Mariebob said:
Well, I tried, but the problem is that my form has to be visible and
be refreshed... I just don't want the user to be able to click on
it...

Normally the interface already rejects user input while code is running.
What exact issue are you trying to solve?
 
M

Mariebob

Well, I just solved my problem by putting a rectangle hiding my entire form,
deactivate it and the control box of the form too.

FYI,

my problem was that I was exporting automatically generated graphs to
powerpoint and when the user clicked on the form, it stopped the process... I
don't know why.
 

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