Click here to Skip to main content
15,889,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys,

I have a strange problem that I can't resolve.

My project in VS2008 on my XP machine when compiled runs nicely and dialog size a paints controls as per IDE design.

When I run this EXE in XP it works fine. However when I run it in Windows 7 machine it seams that every thing is bigger or expanded and gets cut off by the edge of the dialog edge.

I am locating and size controls dynamically during the build and while in operation based on functions selected during the running of the EXE. i.e. Press button and dialog expands X amount bigger, press again and it shrinks.

It seams the AutoScaleMode is the problem but can't seam to find a reasonable fix / resolution for this?

Does anyone have a solution or good explanation for to formulate a fix?

Please help would be very much appreciated. :(
Posted

1 solution

Unfortunately, it's hard to say anything for sure without looking at your project, but it sounds like you are using overly stiff style of UI design.

Perhaps some ideas and my tiny code sample from my past solution could help you:
GUI Apperance - C#.Net[^],
Zom Out malfunctions when Screen resolution changes[^],
how to dock button so that it can adjust with the form[^].

—SA
 
Share this answer
 
Comments
StephanGumpert 21-Nov-11 0:06am    
Yes I have only recently migrated from VB6. (which I must say is fantastic) So normally I would set Width of dialog, then resize controls with in the dialog mathematically to suit. Obviously with Font Size and Resolution changes this doesn't work. Any tips on the best method for this?
Sergey Alexandrovich Kryukov 2-Dec-11 19:39pm    
My tips are pretty much reduced to those I referenced above. By they way, these approached work for me nicely, the UI scales well. Also, it's important to keep application resizeable but setup reasonable MinimalSize.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900