Dynamic Controls programmed with VBA

  • Thread starter tobesurveyor via AccessMonster.com
  • Start date
T

tobesurveyor via AccessMonster.com

Good Morning All,

I have created a function that will dynamically make my images & rectangles
expand dynamically with the Resize Event. I am wondering if there is a way
to make a control do the same.
I have a form with the above mentioned function that takes an image and
expands it across the screen on resize. The image acts as a header to this
form. I would like to put a text control or an image on the right side of
the header and on Resize make it stay on the right side of the screen no
matter what size the window is. Is this possible?

Thank you in advance,
Chris
 
M

Marshall Barton

tobesurveyor said:
I have created a function that will dynamically make my images & rectangles
expand dynamically with the Resize Event. I am wondering if there is a way
to make a control do the same.
I have a form with the above mentioned function that takes an image and
expands it across the screen on resize. The image acts as a header to this
form. I would like to put a text control or an image on the right side of
the header and on Resize make it stay on the right side of the screen no
matter what size the window is.

Try add this to your Resize event:
Me.textbox.Left = Me.InsideWidth - Me.textbox.Width
 

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