Добавление файла манифеста в проект VB NET в VB 2010 Express edition? - PullRequest
0 голосов
/ 04 марта 2019

Моя программа выглядит немного размытой при запуске, поэтому я пытаюсь реализовать решение, найденное здесь: https://social.msdn.microsoft.com/Forums/vstudio/en-US/7b606ee7-5814-46a1-9b2d-959eccfa0c35/vbnet-blurry-application-during-runtime?forum=vbgeneral

Однако в моем выпуске VB 2010 Express нет шаблона для добавления манифеста.

Уже есть app.manifest, который я вижу в обозревателе решений.Никогда ранее не занимался app.manifest, значит ли это, что я должен просто отредактировать существующий манифест?

Если так, то я не уверен, куда пойдут предложенные строки?В моем существующем манифесте нет похожих записей XML ...

Вот, по-видимому, решение:

Add a new app manifest from the solution explorer using Add New Item.  Then go into the file generated and uncomment the section for high dpi.  It should look like:

  <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
    </windowsSettings>
  </application>
Then open the App.Config file and add this section under <configuration>:

  <appSettings>
    <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
  </appSettings>
Note that you probably won't see the effect during debugging.  But when you run the compiled exe, it should look clear as if you had ticked the disable scaling on high dpi checkbox.
...