Forms showing different layout in Customer's computer


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
I have a customer where my application's forms are shown in a different layout than they suppose to be. Please see the attached images.



My customer and I are using Windows Vista 64bits with a screen resolution of 1920x1200.



Is there a form's property or something I have to setup to make sure the form's will display as they should?

BTW, I am not using any autosizing or anchor properties.

Edhy Rijo

Attachments
MySystem_CardsForm.png (390 views, 38.00 KB)
Customer_CardsForm.png (426 views, 77.00 KB)
MySystem_AddInventoryItemsForm.png (425 views, 49.00 KB)
Customer_AddInventoryItemsForm.png (393 views, 68.00 KB)
Replies
Charles R Hankey
Charles R Hankey
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Forum Members
Posts: 524, Visits: 30K
Did you try disabling the autoscaling on the client's box for your app? The impression I got from reading WPF stuff was that as long as your app was winforms and used GDI you wouldn't get accurate rendering if let the OS autoscale.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Is there a way to set the default font for SF TextBoxes?

Well, the first thing is to determine what you are fighting.  Most environments do not set their DPI above 96 DPI, however, if this is going to be common place for you, then you may need to address this in a base class situation.  If you recall in training, we suggest that you create your base UI controls that at the very minimum inherit off of the SF classes (even if nothing is added to the logic) for situations just like this.  If you haven't done this, it isn't that big of a deal as you can do a mass replace to change the textbox types on your forms.

If you see some early threads on the forum, we had one person who wanted to run their desktop in 120 DPI.  This did throw off some of the SF dialogs.  I know that there are some that probably still need to be changes, but we addressed all of this through the autoscaling settings versus on a control by control basis.

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Well in fact this is the first customer I got with a 120 DPI and it is due to is large monitor which came preset with that DPI, so I wouldn't be surprise of finding many more customer with the low prices of large screen monitor today.



I am trying to handle this setting AutoScaleMode = DPI and using the Segoe UI font and was able to get a decent autoscale of the forms, but still this will take more trial and error BigGrin and since this project is to be use by many customers I have no choice other than keep trying.



About subclassing, I have done that with the forms and BOs and some Currency textboxes, but as you suggested I should at least include the labels which are always used in all applications.

Edhy Rijo

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Charles R Hankey (04/15/2009)
Did you try disabling the autoscaling on the client's box for your app? The impression I got from reading WPF stuff was that as long as your app was winforms and used GDI you wouldn't get accurate rendering if let the OS autoscale.



Hi Charles,

Yes I tried disabling the shortcut "Disable display scaling on high DPI settings" but that did not have any effect and I mix and match this setting with different setting in the form's AutoScaleMode property. So this could really be a very frustrated task to keep the application in complaint with the OS DPI, based on some articles I found on the google this should be handle automatically by VB.NET, but it is not BigGrin.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search