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

Resize Form Controls and Subform Controls at the same time

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.