Results 1 to 6 of 6
  1. #1
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Northern, California, USA
    Posts
    1,886
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Userform Initialize: Window Sizes (97 SR2)

    How can I make my application adjust to my main form's size, and maximize the form automatically as the form is started?

    Thanks!
    <IMG SRC=http://www.wopr.com/w3tuserpics/Kel_sig.gif>
    Moderator:<font color=448800> Pix Place, Internet Explorer</font color=448800>
    <small>www.kvisions.com

  2. #2
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    London, Ontario, Canada
    Posts
    437
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Userform Initialize: Window Sizes (97 SR2)

    DoCmd.Maximize in the On Load event. Is that what you mean Drk?

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Northern, California, USA
    Posts
    1,886
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Userform Initialize: Window Sizes (97 SR2)

    That seems to be maximizing the Access Instance.. what can I use to maximize only the form?
    <IMG SRC=http://www.wopr.com/w3tuserpics/Kel_sig.gif>
    Moderator:<font color=448800> Pix Place, Internet Explorer</font color=448800>
    <small>www.kvisions.com

  4. #4
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    London, Ontario, Canada
    Posts
    437
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Userform Initialize: Window Sizes (97 SR2)

    No, DoCmd.Maximize in the forms On Load event maximizes the form to fit the application window. Least, that's the way it works for me. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

  5. #5
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Northern, California, USA
    Posts
    1,886
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Userform Initialize: Window Sizes (97 SR2)

    Isn't working that way for me... It's in the form's Form_Load() event as it should be... why isn't it working? <img src=/S/bash.gif border=0 alt=bash width=35 height=39>
    <IMG SRC=http://www.wopr.com/w3tuserpics/Kel_sig.gif>
    Moderator:<font color=448800> Pix Place, Internet Explorer</font color=448800>
    <small>www.kvisions.com

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

    Re: Userform Initialize: Window Sizes (97 SR2)

    Try it in the Open event and see whether that makes a difference. Do you have anything else going on in the form that might be interfering? I use this technique all the time and it works for me in both forms and reports.

    Just had a thought. Is your main Access window maximized or not? If not, the DoCmd.Maxmize with still maximize the form, but it won't affect the main window. If you want that to maximize, open the database, maximize main window, and then close the database. The next time you open it, it should be maximized.
    Charlotte

Posting Permissions

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