469,934 Members | 1,874 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

Resize Form Controls and Subform Controls at the same time

In terms of resources, wondering if it makes a difference in adopting
one of the three options below for resizing controls on a form and
controls on a subform at the same time.

option a.) Put the code all in the main form and refer to the controls
on the subform in the main form's OnResize event.

option b.) Put the code for the main form controls in the main form's
OnResize event and put the code for the subform controls in the
subform's OnResize event.

option c.) Put all the code in a module and call it on the OnResize
event of the main form.

What this code is doing is positioning the controls based on the form
or subform's width:

Dim mainWid as Long, subWid as Long
mainWid = Me.InsideWidth
subWid = Me.Child.Form.InsideWidth

Me.ControlName.Left = mainWid - 500
Me.Child.Form.ControlName.Left = subWid - 200

Just wondering what advice people have to offer on this.

Nov 13 '05 #1
0 2800

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Soryt | last post: by
2 posts views Thread by Claude | last post: by
2 posts views Thread by Magenta | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.