
I put my button's X value as "button1.X + button1.Width" so it can adapt when switching to portrait mode. However, the entire formula seems to be lost as I switch from landscape to portrait, even if I saved the app before making the switch. This happens to X,Y,Width,Height values as well, as if they weren't saved at all. I had to keep re entering the same formula over and over.
Are you saying you set a button's X value to button.X+button.Width?
This will not work as you are referencing the X value to set the X value. It should throw an error saying this creates a circular reference.
Can you please verify by running the app checker if you are getting this error?
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP