Resising form

  • Thread starter Thread starter Lodewijk
  • Start date Start date
L

Lodewijk

Is i possible to resize the form after the user hits a button?

I have a form which shows the contents of a table. With the button cmdNew a
new record cabn be added. At that time some more fields are shown to fill
in, so I want to form to become lager.
 
Hi,


Me.Width= ...

will resize the form (an horizontal scrollbar may
appear), but keeping its visual "size" on the screen

DoCmd.MoveSize ,,newWidth, newHeight

will resize the visual space, on screen, occupied by the
form having the "focus".


Hoping it may help,
Vanderghast, Access MVP
 
Lodewijk said:
Is i possible to resize the form after the user hits a button?

I have a form which shows the contents of a table. With the button cmdNew a
new record cabn be added. At that time some more fields are shown to fill
in, so I want to form to become lager.

--

Try increasing the value of the form InsideHeight property. Ex.:

me.insideheight = me.insideheight + 1440 '* Increase form height by an inch.

Hope this helps,

Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top