width of a form

G

giannis

I use the property width for a form

Forms!form1.width=<a number>
Forms!form1.Repaint

but the form's width dont changed .
How can change the width of a form
in real time ?
 
V

Van T. Dinh

Yes, it does if the number is a reasonable number in Twips. But the problem
is that the "MDI" widow that contain the Form won't change.

Rather than set the width of the Form, use the MoveSize Method to change the
width of the "MDI" window of the Form.

Check Access VB Help on the MoveSize Method.
 

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

Top