By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,704 Members | 1,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,704 IT Pros & Developers. It's quick & easy.

changing form dimensions in vb.

P: n/a
Does anyone know of a way to change the length and width of a form in
code? Say if someone presses a button the form doubles in size to
reveal a some text boxes. I just need the code for the size changes if
such code exists?
Thanks in advance.
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Me.Height = 2880
Me.Width = 5760

The above code will give you a 2" x 4' form. Measurements are in Twips where
1" = 1440 Twips.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"MissiMaths" <mi********@hotmail.com> wrote in message
news:75*************************@posting.google.co m...
Does anyone know of a way to change the length and width of a form in
code? Say if someone presses a button the form doubles in size to
reveal a some text boxes. I just need the code for the size changes if
such code exists?
Thanks in advance.

Nov 13 '05 #2

P: n/a
PC Datasheet wrote:
Me.Height = 2880
Me.Width = 5760

The above code will give you a 2" x 4' form. Measurements are in Twips where
1" = 1440 Twips.


Does that change the outside as well? Should me.height not be
me.section(acdetail).height?

docmd.movesize moves and sizes the form. I have seen utilities to
translate between the various coordinate systems, one is on
www.mvps.org/access
Nov 13 '05 #3

P: n/a
The poster asked about changing the size of a form to reveal a some text
boxes. You got to presume she is referring to a pop-up form. The given code
will change the overall size of a pop-up form including the title bar.

Steve
PC Datasheet
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:cm**********@news2.solcon.nl...
PC Datasheet wrote:
Me.Height = 2880
Me.Width = 5760

The above code will give you a 2" x 4' form. Measurements are in Twips where 1" = 1440 Twips.


Does that change the outside as well? Should me.height not be
me.section(acdetail).height?

docmd.movesize moves and sizes the form. I have seen utilities to
translate between the various coordinate systems, one is on
www.mvps.org/access

Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.