var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Set Form Size Using Command Button
I would like to se tthe size of a form using a command button.
Button 1 - set form width to 5"
Button 2 - set form width to 4"
I tried using me.form.height = 3" and form.height = 3"
and me.form.height = 4320 (which is Twips - 1440 twips = 1")
can this be done?
Thanks - AB
Have you tried this
Button 1 command:
The docmd.movesize x,x,x,x might work.
pkstormy is right. Keep in mind though.....1440 Twips = 1"
4" = 5760 Twips
5" = 7200 Twips
Last edited by CyberLynx; 01-24-05 at 19:11.
I find this useful when dealing with twips
Put this in a module and name it say Utility
Then when you have to refer to twips you just do this
Public Const twips As Long = 1440
very handy if you want a control on a form to move to Left 2.345" top 1.437" you dont have to work out how many twips.