Results 1 to 10 of 10
  1. #1
    Star Lounger
    Join Date
    Mar 2002
    Location
    Edinburgh, Scotland
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form Design (A 97)

    I have a form which is set to Maximize on current, but it moves about the screen in response to other events - what can I do to make sure it stays in the same place all the time??

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Form Design (A 97)

    Do you mean that the "other events" restore the form to non-maximized? Which events do this?

  3. #3
    Star Lounger
    Join Date
    Mar 2002
    Location
    Edinburgh, Scotland
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Form Design (A 97)

    The form has several controls which open other forms in pop-up mode. When I use these, the form remains maximized but "slides" down the window and has to be dragged back to the top. Thanks

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Form Design (A 97)

    If a form is really maximized, you can't drag it (it won't have a title bar to drag it with). Do you use the 'MaximizeRestoredForm' trick using WinAPI calls to display a form non-maximized but filling the entire Access application window? (It can be found - for instance - here in the Access Web). I have experienced problems like yours when using that technique. To get the form back in place, you would have to put calls to "maximize restore" your form at every location in your code that causes the form to move. Even then, the effect is not pretty - the user will see the form slide down and up again repeatedly. For that reason, I gave up using this method.

  5. #5
    Star Lounger
    Join Date
    Mar 2002
    Location
    Edinburgh, Scotland
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Form Design (A 97)

    Hmmm.... no nothing so advanced! I know I've sorted this problem before, but cant remember how. Will come back to me in my sleep probably (what a sad gittete)! Thanks anyway Hans <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Form Design (A 97)

    Sorry, out of ideas - I've never seen a (really) maximized form that moved and could be dragged around within the Access window; I don't know what would cause this. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

  7. #7
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Form Design (A 97)

    I had a similar problem recently.
    The way I got around it was to put the DoCmd.Maximise in the following properties of the form.

    On Open
    On Load
    On Resize
    On Activate.

    You could try it anyway.

  8. #8
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Form Design (A 97)

    A maximized form fills the screen entirely. There should be no way for it to "slide" anywhere. If your other forms are popping up and are NOT maximized, then I suspect you've got some fancy footwork going on and that the form is not truly maximized.
    Charlotte

  9. #9
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Form Design (A 97)

    I just saw similar behavior today in an A97 app, but it only seems to occur when you switch from the maximzed form to a code window and then back. I suspect the behavior is linked to the VBA editor used in Access 97 because I've never seen the equivalent behavior in 2000 and later, where the VBE is now a separate window entirely.
    Charlotte

  10. #10
    Star Lounger
    Join Date
    Mar 2002
    Location
    Edinburgh, Scotland
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Form Design (A 97)

    Thanks everyone - I will try out what you suggest, but like Charlotte suggests, as I'm at the design stage I also think it is likely to be something to do with the editor.

    Many thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •