Modal form

  • Thread starter kevtrucker via AccessMonster.com
  • Start date
K

kevtrucker via AccessMonster.com

I have a main form that is maximised and on screen all the time, on this form
there is menu bar with two comand buttons that each open a different form in
modal view, obviously the form has to be closed to return to the main form,
my question is, is there a way to put a message box up if the user clicks
outside the current form to tell them that the form must be closed first?

Kevin
 
P

PieterLinden via AccessMonster.com

kevtrucker said:
I have a main form that is maximised and on screen all the time, on this form
there is menu bar with two comand buttons that each open a different form in
modal view, obviously the form has to be closed to return to the main form,
my question is, is there a way to put a message box up if the user clicks
outside the current form to tell them that the form must be closed first?

Kevin

Why not just open the form as modal (acDialog)? Then it's not possible to go
anywhere else until you close the form.
 
J

JonWayn

or, you can put your msgbox in the Deactivate event of the form you wish to
inform about
 
K

kevtrucker via AccessMonster.com

Firstly, sorry for delay in responding, i am holiday and just got my mobile
broadband working.

Maybe i didnt explain what i wanted properly, i have a main form from which i
open a second form in modal mode, the operator cant go anywhere until they
close the second form, what i wanted was to bring up a message that woudl say
" you need to close the form first" if the operator clicked anywhere else on
the screen before closing the second form.

Kevin
I have a main form that is maximised and on screen all the time, on this form
there is menu bar with two comand buttons that each open a different form in
[quoted text clipped - 3 lines]

Why not just open the form as modal (acDialog)? Then it's not possible to go
anywhere else until you close the form.
 
K

kevtrucker via AccessMonster.com

Firstly, as in the previous post, sorry for delay as i am on holiday and only
just got mobile broadband working.

sorry but i dont understand what your saying.

if i put the msgbox in the deactivate event how will it work until the form
is closed!!

sorry if this is obvious but im not gettin it.

thanks for any assistance

Kevin
or, you can put your msgbox in the Deactivate event of the form you wish to
inform about
I have a main form that is maximised and on screen all the time, on this form
there is menu bar with two comand buttons that each open a different form in
[quoted text clipped - 3 lines]
 
B

BruceM

I think that with a modal form you don't have the option of dong anything
outside of the form. You may have to either open the modal form maximized,
or minimize the other form(s) when you open the modal form.

kevtrucker via AccessMonster.com said:
Firstly, sorry for delay in responding, i am holiday and just got my
mobile
broadband working.

Maybe i didnt explain what i wanted properly, i have a main form from
which i
open a second form in modal mode, the operator cant go anywhere until they
close the second form, what i wanted was to bring up a message that woudl
say
" you need to close the form first" if the operator clicked anywhere else
on
the screen before closing the second form.

Kevin
I have a main form that is maximised and on screen all the time, on this
form
there is menu bar with two comand buttons that each open a different form
in
[quoted text clipped - 3 lines]

Why not just open the form as modal (acDialog)? Then it's not possible to
go
anywhere else until you close the form.
 

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