Value<\/strong>: DPIUNAWARE<\/p>\nA URI do devenv.exe varia conforme a vers\u00e3o que voc\u00ea est\u00e1 utilizando do Visual Studio. Segue alguns exemplos:<\/p>\n
Visual Studio 2022 Community:
C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\devenv.exe<\/p>\n
Visual Studio 2017 Community:
C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\IDE\\devenv.exe<\/p>\n
Nota:<\/p>\n
Caso a sua vers\u00e3o do Visual Studio seja Professional ou Enterprise, substitua a palavra “Community” por “Professional” ou “Enterprise”.<\/p>\n
O Visual Studio ficar\u00e1 em modo DPI-Unaware at\u00e9 que voc\u00ea remova esta entrada do registry.<\/p>\n
Caso o programador opte por trabalhar em apenas um dos modos talvez seja sensato remover a notifica\u00e7\u00e3o, alterando para “False” o par\u00e2metro “DPI Scaling Notifications” citado logo no in\u00edcio deste tutorial.<\/p>\n
<\/p>\n
Solu\u00e7\u00e3o de Problemas<\/h2>\n
Se a transi\u00e7\u00e3o entre DPI-Aware e DPI-Unaware n\u00e3o estiver funcionando corretamente, verifique no registry a exist\u00eancia e ent\u00e3o elimine o valor “dpiAwareness” que fica na subchave:
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\devenv.exe<\/p>\n
<\/p>\n
Conclus\u00e3o<\/h2>\n
Apesar de ser chato e trabalhoso ficar trocando os modos de trabalho do Visual Studio, \u00e9 poss\u00edvel programar em Windows Forms nos computadores com monitor Hi DPI. Este \u00e9 um contratempo que eu realmente gostaria muito de ver solucionado em alguma vers\u00e3o futura do programa.<\/p>\n\n\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
Saiba como resolver o problema de incompatibilidade do Visual Studio com monitores 4K e outros Hi DPI para aplica\u00e7\u00f5es Windows Forms.<\/p>\n","protected":false},"author":1,"featured_media":2344,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[146,56],"tags":[108,104,107,105,106],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/blog.lucianoreis.com\/wp-content\/uploads\/2016\/07\/ide.png?fit=1114%2C609&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pav3ZT-Jj","_links":{"self":[{"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/posts\/2809"}],"collection":[{"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/comments?post=2809"}],"version-history":[{"count":18,"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/posts\/2809\/revisions"}],"predecessor-version":[{"id":6349,"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/posts\/2809\/revisions\/6349"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/media\/2344"}],"wp:attachment":[{"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/media?parent=2809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/categories?post=2809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lucianoreis.com\/wp-json\/wp\/v2\/tags?post=2809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}