Click to See Complete Forum and Search --> : Clipped Form
PaulT
March 20th, 2001, 03:24 PM
I have a form that is not the startup form as part of a vbp. When I open the project, run the program, and get the form to show, the bottom half-inch to an inch is clipped off. If I stop the program, then bring up the form object in the design window, then run the program, the part that was clipped off is visible. Does anyone know what's going on and how to fix it? Thanks
Paul
phil m
March 21st, 2001, 01:19 AM
To make sure a form appears where you want it to, it is always a good idea to set its position in the load event.
If you have simply stuck it anywhere then you probably wont always get to see it where you would like. Think also that all monitors are different and the position, relative to each, will be different.
In the load event enter
form2.left = whatever
form2.top = whatever
You can also use with
with form2
.top = 0
.left = 0
end with
And cenralise it too if you so choose.
form2.top = (screen.height/2)-(form2.hight/2)
In some such formula
Good Luck
Phil
PaulT
March 21st, 2001, 11:27 AM
Thanks for your reply. Maybe I stated my case wrong. The form isn't being clipped by the bottom of the screen, there's just a slice along the bottom that's missing.
Paul
phil m
March 21st, 2001, 05:38 PM
Have you tried
form1.height = a number that covers the bit that is missing
Phil
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.