Form Window Properties

J

John Michael

Hi
How do you get a form to always open back to the way you set them up
initially? Screwy question huh?

I've tried setting the properties differently, but it is a hard thing to
test. They may seem to work the way you want them, and then one day you
notice they now are opening with half the form hidden until you resize the
window. It's aggrivating.
I would like to be able to say what size the form should be when it opens
everytime. Can this be done with code or how do you set the properties
sheet. There are som many variables when you take into account the types of
forms you can have. it is hart to figure out the property sheet config.

I've tried the function that stores your window chords in the registry. It
will do the job, however, it locked the program up once, so I disabled it.
Evidently when a window closed, it did not close correctly and left bad info
in the registry for that window. When it tried to reopen it couldn't. I
had to disable the onload function to get the chords, open the form and
close it with the new chords. It then started to work again
Was this just a freak accident?
Several other weird things happened in the db when this event happened.
Should I hook it back up and try it again?

Thanks
John Michael
 
V

Van T. Dinh

You may like to use the MoveSize Method in the Form_Activate Event.

Check Access VB Help on the above method.
 

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