Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically changing the top property of the image control

Status
Not open for further replies.

Haazi2

Programmer
Aug 25, 2000
51
US
I have an image control on a form. The form loads with
the image control at a certain postion. I want the image
control to stay at the same postion even if the form is
resized. I tried using the ratio of the form's height to
the image control's top property to change the image
control's top property each time the form is resized, but
the top property will not change. Does anyone have any ideas or suggestions of how to dynamically set the top property for any control so that it will have the same relative postion when the form is resized?
 
Image1.Move 1000, 1000

Image will always be displayed at this position no matter if the form is resized or not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top