0

I'm currently working on a small VB.NET app on VS2010, and it seems that setting the "dpiAware" field on True in the project's manifest file is the only way of having the program not come up as a blurry mess on newer PCs.

The thing is, i really need (not allowed to explain why) to have this setting "packed" in the executable and not have it in a separate file that needs to come along with it.

After some research, it seems to be possible to embed the manifest file inside the exe file, but the instructions in my case are often unclear due to being written for newer versions of VS and/or different languages. Maybe it's even possible to change the dpiAware field in-code and not having to mess with external files, i'm not really sure.

Hopefully some of you had some experience in this department.

Any help would be greatly appreciated. Thanks in advance !

3
  • Did you check in the Bin/Debug or Bin/Release folders what has become of your app.manifest file? -- Are you referring to a Windows Forms Project? Tag your question accordingly (the Tag is winforms, in that case). -- The DpiAwareness setting can also be set in App.config. You didn't specify what .Net version you're targeting and what System versions you're supporting. Commented Jan 20, 2022 at 11:18
  • Project > Add New Item > pick "Application Manifest File". Editing hints are here. Commented Jan 20, 2022 at 13:17
  • You specify an manifest on the command line (and an icon). However if you need more than those two only then all 3+ need to be in a .res file. See C:\Windows\Microsoft.NET\Framework64\v4.0.30319\vbc /?. Commented Jan 21, 2022 at 6:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.