StrataFrame Forum

Button Location Changes Between Design and Run

http://forum.strataframe.net/Topic32752.aspx

By William Fields - 12/3/2014

I've got a button on a form that won't stay put. At design time, the button is in one spot, when I run the form, it's in a different spot. Attached image shows design on left and running form on the right. I've turned of AutoSize and it is not anchored...

Any ideas?
By Edhy Rijo - 12/3/2014

William,

That may be caused by the font size in the workstation where the application is running.

You can use a Toolbar with a single button instead.
By William Fields - 12/3/2014

Shouldn't the running form look the same as the design time form when they're running on the same workstation?

FYI - the button in question is the "Pre-Built Dialogs" button in Form1 in the Database Installer sample app. I'm not familiar with the "ThemedGroupBox", but I think that's part of the issue.

Thanks.
By Edhy Rijo - 12/3/2014

William Fields (12/3/2014)
Shouldn't the running form look the same as the design time form when they're running on the same workstation?

Yes, but that will depend on the font size used in the workstation where the application is running.

Are you testing this in the same computer you are using for developing?

I don't remember the code in that sample application, but other than the font, the only thing is that some code is moving the position of that button.
By Larry Caylor - 12/3/2014

If you're testing on a Windows 7 machine make sure the font size is set to the default (100%). Anything else my cause unexpected results. 

-Larry