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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

label location

Status
Not open for further replies.

and0b

MIS
Mar 27, 2007
51
US
I have a label on the form for which I'm setting location"

Me.lbl_lname.Top = 1500
Me.lbl_lname.left = 2000

now I'm saving this code, running the form and checking how does loock. Next in the code I'm changing position to:

Me.lbl_lname.Top = 750
Me.lbl_lname.left = 1000

saving code, running form and label is still in old position, What is wrong??? Can someone explain why??

Andrew
 
I think you are changing the location at runtime and the new location parameters are not saved anywhere. You need to save the new parameters in your db/registry or any other place. Then read the saved params on load of the form to reset the location of label

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
How I can save parameters?? I thought so when I'm saving code I'm also saving parameters?
 
On which event you are relocating the label?

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
this all is at design time, I'm just changing number and saving manually.
 
Ok.. but the code must be in any of the events right?

OnLoad of form , button_Click etc..

Try to place the code in a button click event to see how it works.

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top