Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Mar 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ho can i do the sub form in th (center)

    Ho can i do the sub form in the center automatic when i open the main form in man & min .
    Ashraf

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Ho can i do the sub form in th (center)

    I think you will have to explain this a little better. What do you mean my "...open the main form in man & min"?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

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

    Re: Ho can i do the sub form in th (center)

    Are you asking how to resize a subform when you change the size of the parent form, such as when you maximize it? The code is not trivial, since you have to figure out where on the screen the "center" is, which depends on resolution, and then set the top and left properties of the subform control to that center point minius half the height of the subform and half the width. Generally, it's a better idea to design the form for a particular size and keep it at that size. I rarely, if ever, maximize forms because they look terrible that way.

    You might take a look at the ShrinkerStretcher download from http://www.peterssoftware.com/ if what you're actually trying to do is resize the form itself.
    Charlotte

  4. #4
    New Lounger
    Join Date
    Mar 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Ho can i do the sub form in th (center)

    Thanks Dear Charlotte as u said .
    max=maxmize
    min=minmize
    Thanks for all

Posting Permissions

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