Question

I have an issue with my C# application. It's about controls on borderless form. I've created a application that works like a logging system (shows in center of the screen, has 2 textboxes, 2 comboboxes, 2 pictureboxes, form StartPosition is CenterScreen). The application works fine on almost every system, 30 - 40 people are using it, but 3 of them has a problem, that makes the app useless.

The controls are totally moved and seems little bigger than they should be, 2 of these controls are moved even outside the form - which makes them inaccessible.

I've tried to set the compability mode and change the screen resolution. No luck. All of these problematic machines has Windows 7 and default .NET 3.5.1, one has 4.0. The application was targeted for .NET 3.0 (I wanted to keep it free from dependencies on machines with Vista and newer).

I'm looking for a advice from those, who had experience with this kind of problem. I would like to keep the form borderless, its essential for its design, and keep the target framework if possible. What can i do to keep this in solid ?

Was it helpful?

Solution

I'm guessing you have problems with DPI. Try increasing it on your dev machine and I bet you will see same effect. I hadn't worked with winforms for a long time, but I think you can use this article to help you out.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top