Form that stays open

B

Bob

Is it possible to have a small form 6cm x6cm that stays open in the top left
corner no matter which form you select. Thanks for any body's
help..........Bob
 
R

Rob Parker

A rather strange question ...

to which my answer is "Yes, BUT ..."

It will only be visible until another form gains focus, at which time any
part of the active form which overlaps this form will obscure that portion
of it. You can't force the small force to stay on top except by opening it
in dialog mode - and if you do that, you can't do anything else in you
application until you close it!

There may be some devious method of doing this by API calls to control
window states, but it's not something I've ever seen.

HTH,

Rob
 
B

Bob

What I was going to do was have this small form in the left hand corner
which is like the switchboard so at any time you could move from form to
form, Just a thought................Bob
 
A

Albert D. Kallal

Rob Parker said:
It will only be visible until another form gains focus, at which time any
part of the active form which overlaps this form will obscure that portion
of it. You can't force the small force to stay on top except by opening
it in dialog mode - and if you do that, you can't do anything else in you
application until you close it!

There may be some devious method of doing this by API calls to control
window states, but it's not something I've ever seen.

No, making a form stay on top is a simple matter of using the "popup"
setting.

there are 3 types of forms in ms-access

acdialog - ac dialog forms are VERY MUCH different then popup forms, or
model forms
You can ONLY set a form as acdialog via code. (it is NOT possible to open a
form any
other way, nor are their settings).

model - model forms are quite common, but often confused with dialog forms.
While
a both a model and acDialgo keep the focus, a model form is MUCH more
forgiving then
a acDialog form, as a model form allows the focus to change to the menu bar,
and further
code that opened the form continues to run. A fairly large portion of my
forms are model
because I want the user to return to the previous form. The model setting
for a form
IS NOT SET in code (it can be, but it is rare to do such). So, while
acDialog form
setting MUST be via code, a model form is the opposite, and you do NOT use
code
to set the forms model setting.

popup - this is form that stays on top of all other forms. For help screens,
wizards, and the like, this is a MOST USEFUL setting, and thus your
statements about using api and what not are complete wrong..

A popup form will remain on top, but ALLOW YOUR EXISTING FORMS TO KEEP the
focus. As mentioned, for wizards, or info displays, or exactly what the
original poser is asking for can be accomplished by setting the forms popup
value to true.

I expalin the differnce between acDialog forms and model forms here:

http://www.members.shaw.ca/AlbertKallal/Dialog/Index.html

What that article is missing complete is mention of popup forms....
 
R

Rob Parker

Thanks Albert,

I'd completely forgotten about pop-up forms.

And my apologies to Bob also, for my misleading post.

Rob
 
B

Bob

Is this ok seems to work:
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "frmPopUp"
End Sub
Thanks Bob
 
B

Bob

Albert I have created my Pop Up form it is a thin strip across the top 25cm
and 0.871 high, but there is a grey area underneath the pop Up form that is
about 1cm, I've tried everything to make the form only 0.871 which is the
height of the command buttons on it.....Thanks for any help, Bob
 
A

Albert D. Kallal

Bob said:
Albert I have created my Pop Up form it is a thin strip across the top
25cm and 0.871 high, but there is a grey area underneath the pop Up form
that is about 1cm, I've tried everything to make the form only 0.871 which
is the height of the command buttons on it.....Thanks for any help, Bob

Set the forms border style = none?

And, consider using a menu bar, or tool bar???

Here is some screen shots/ideas of menu bars:

http://www.members.shaw.ca/AlbertKallal/Articles/UseAbility/UserFriendly.htm
 
B

Bob

Scroll Bars ; Neither / that did the trick brought the form up to bottom of
buttons.....Thanks Bob
 

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