Problems with PrimaryScreen.Size

后端 未结 2 1684
鱼传尺愫
鱼传尺愫 2021-01-04 02:49

I\'ve been fine with Screen.PrimaryScreen.Bounds.Size for some time, but on my Windows7 computer attached to my big-screen TV it is giving me incorrect values.<

2条回答
  •  [愿得一人]
    2021-01-04 03:02

    I don't feel this is a duplicate question, but the answer is the same as on another thread: https://stackoverflow.com/a/13228495/353147 As the question isn't about blurry fonts but why Screen.PrimaryScreen.Bounds.Size returns faulty information. It could help others.

    I did run into an error message, that mscorlib threw an null error. From this thread http://forums.asp.net/t/1653876.aspx/1 I was able to discover that unchecking "Enable ClickOnce security settings" fixed it. This seems like a hack, but it works.

提交回复
热议问题