KamandJJirbande Posted December 22, 2008 Posted December 22, 2008 Hi buddies, In fact I noticed that my application won't display correctly on DPI settings other than 96 DPI. Well, this is a critical problem for me, I don't know how can I disregard it and show my application normally without problem? What do you recommend at this state? Thanks all... :confused: Quote
Administrators PlausiblyDamp Posted December 22, 2008 Administrators Posted December 22, 2008 Have you tried adding a manifest to your application and marking it as not being DPI aware? If you are on VS 2008 you can add a manifest as a file to your project and add the following true to the file before the closing tag. If you are on VS 2005 then you will need to tweak your project a little to get it to embed the manifest. I can dig up a post on this if you need it though. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
KamandJJirbande Posted December 22, 2008 Author Posted December 22, 2008 Hi PlausiblyDamp, I really thank you, if I can make my app not DPI aware I will be so happy. In fact I am using VB.NET 2008 When I go to application properties there is a button named "View UAC Settings". When I press this button I have a page with this content: <?xml version="1.0" encoding="utf-8"?> <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <requestedExecutionLevel level="asInvoker" uiAccess="false" /> </requestedPrivileges> </security> </trustInfo> </asmv1:assembly> Is it where I should insert your code? If so, where? There are big differences, please advise :) Thank you sooo much... :p Quote
Administrators PlausiblyDamp Posted December 22, 2008 Administrators Posted December 22, 2008 Out of interest are you using C# or VB? Just curious as I'm not sure if VB does things different to C# on this - but yes insert my example before the line and see what it does. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
KamandJJirbande Posted December 22, 2008 Author Posted December 22, 2008 Hi, VB and it didn't work :( I even tried different conditions, please help me :( Thanks. Quote
Administrators PlausiblyDamp Posted December 24, 2008 Administrators Posted December 24, 2008 My bad, set the dpiAware entry to false and try again. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.