Dynamic Controls programmed with VBA

  • Thread starter Thread starter tobesurveyor via AccessMonster.com
  • Start date 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
 
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
 
Back
Top