K
Keith G Hicks
I'm trying to move a command button up and down as a form is resized. Here's
my code in the form's resize event handler:
cmdPrintReport.Top = 5.1354 * 1440 + (Me.InsideHeight - 5.5 * 1440)
It works fine when I drag the form's height smaller than the designed
height. It also works fine as I size it bigger from there. But if I size it
just a touch taller (maybe 10 pixels or so) than the designed height I get
an error: "The control or subform control is too large for this location."
The button is not on a subform and I have no restrictions on the height of
the form. The button does not grow in height either. I see no reason at all
for this error to occur. I have similar code for moving the button left and
right as the width is adjusted and it works fine no matter what I size the
form to.
Any ideas?
Thanks,
Keith
my code in the form's resize event handler:
cmdPrintReport.Top = 5.1354 * 1440 + (Me.InsideHeight - 5.5 * 1440)
It works fine when I drag the form's height smaller than the designed
height. It also works fine as I size it bigger from there. But if I size it
just a touch taller (maybe 10 pixels or so) than the designed height I get
an error: "The control or subform control is too large for this location."
The button is not on a subform and I have no restrictions on the height of
the form. The button does not grow in height either. I see no reason at all
for this error to occur. I have similar code for moving the button left and
right as the width is adjusted and it works fine no matter what I size the
form to.
Any ideas?
Thanks,
Keith