0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VB.netで作ったフォームアプリケーションが異なる解像度環境でうまく表示されなかったが解決した

Last updated at Posted at 2023-07-05

VB.netで作ったWindowsフォームアプリケーションを、異なる解像度の環境で実行したところ、フォームの下部に配置した一部のコントロールが表示されない不具合が発生した。

メインのディスプレイが4Kなので、メインディスプレイを変更したりしたが一向に改善せず。
また、作成環境側をいくら変更しても解決しなかったが、実行する環境側で設定を変更したところ正しく表示されたので、今回はその方法を記しておく。

  1. exeファイルを右クリックして、プロパティを表示
  2. 「互換性」タブに切り替えて、「高DPI設定の変更」をクリック
    image-20230704-063257.png
  3. 次のウィンドウで、「高いDPIスケール設定の上書き」設定を入れる。
    image-20230704-063354.png
  4. OKを押してプロパティを閉じる
  5. exeファイルを実行(既に開いていた場合、閉じて開きなおす)

私の環境では、これで解消した。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?