1

I build a usercontrol in our develop environment, and it looked exactly as I wanted it to look. In our test and acceptation environment it looks exactly the same. But, when we released it to our production environment the buttons at the bottom of the screen moved up a bit and are now slightly over a textbox.

How can I make my usercontrol so that it looks the way I want to in every environment? And what made this error possible? I believe we use the same version of Windows.

Dahinda
  • 11
  • 1
  • 3
  • Are you using the same machine in production? could it be that you are using different windows theme? – Dev Mar 09 '18 at 10:13
  • Have you been using fixed lengths (widths, heights, margins, paddings, etc) ? If so, I'd suggest building a responsive design based on relative sizes. See [https://stackoverflow.com/a/6956942/3602352](https://stackoverflow.com/a/6956942/3602352). – Aly Elhaddad Mar 09 '18 at 10:19
  • @Decoder94 That could be possible, can I build my usercontrol in a way it handles every theme correctly? – Dahinda Mar 09 '18 at 10:29
  • @AlyEl-Haddad The main grid has fixed sizes, but the columns and rows are all Height/Width = "auto" and one "*" Do you think it could be the fixed sizes of the grid that is the problem? – Dahinda Mar 09 '18 at 10:30
  • Yes, I usually run into this problem when I load my project onto another machine with the same windows but using a different theme to enhance performance or different screen size. – Dev Mar 09 '18 at 10:35

1 Answers1

0

As we couldn't find a solution, we decided to check our architecture of the form and found some ambiguities. I had made a mess of the stack panels and solved it with lots of white space. After making a proper form the problem didn't occur anymore.

Dahinda
  • 11
  • 1
  • 3