Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Resize problem 1

Status
Not open for further replies.

RealKiwi

Technical User
Feb 26, 2004
41
NZ
I have a mainform/subform which automatically resizes itself "sometimes" at the mainform level. Its quite random and I cannot determine what the problem is. I've read extensively in these threads but cannot find any clear direction.

Im using A2K in WIN2K environment.

Here are the Format settings:

* Mainform
Single Form
ScrollBars - neither
Record Selectors - No
Navigation Buttons - No
Auto Resize - No
Auto Center - No
Border Style - Dialog
* Subform
Continuous
ScrollBars - vertical only
Record Selectors - No
Navigation Buttons - No
Auto Resize - No
Auto Center - No
Border Style - None

Any thoughts/suggestions appreciated, although a conclusive result is worth more kudos.

T.A.A.
RK

 
What I have done that has helped. Create a macro that opens your form,type maximize on the second line. In your startup choose the macro to open the form. This is how I got it to maximize properly.
 
I do not want the form to maximize -- I want it to stop resizing from the size I set up in Design mode; about 6.5in wide by 7in deep.

RK
 
Hi, a couple of ideas...
the form will open to the size of the design window - i.e. if you make changes to the form in a design window that is not maximised but you change the size of the window the form will appear to have changed size - turn auto resize on and close the form right down after design changes. also, if other windows in the db are maximised you need to make the form a pop-up to prevent it from maximising.

HTH, Jamie
 
why not remove all resizing options and borders and set the form as popup with auto centre set to yes and auto resize set to yes

"My God! It's full of stars...
 
Thanks for the suggestions, however there are some hooks to consider.

There is a linked form which appears on the screen, at the same time as the mainform/subform, so I cannot make it a popup as it restricts access to the linked form.

Also setting Auto Resize On makes no difference to the problem.

RK
 
what do you mean by a linked form?
are you talking about a subform?
you have control over the size of the form. by setting it as popup up you can determine its dimensions then fix them.

on the other hand if you mean that two forms appear at the same time and you want to switch from one to the other, then make sure the modal property is set to no that way the forms will behave like windows

"My God! It's full of stars...
 
RealKiwi - Is it possible that you open a primary form in design mode, make appropriate updates, and then run the program to test the updates? I have found that if you don't save and close the form from design view before running the application, that the form size is sometimes not what you'd expect. Since then, I've always saved and closed all design changes and I've not encountered the situation since.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
I want to thank you all for the great information. This will come in handy for my forms as well. I have a problem with a startup form that contains hyperlinks only. It will not automatically take focus after you close the hyperlink on the form. This will give me a few more things to try. Thanks.

:)ArtistRhetta with a Smile!!!!
 
RealKiwi,

Have you had any success with your problem? I've been running into the same issue randomly for the last month. Every time the form resizes, it continues to get bigger and bigger, in both design and form view - and I don't know how to reverse it, let alone stop it. It's really driving me crazy and is a huge problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top