Recently, I was playing a game, C # + DX9,
On the display of your home (15-inch LCD 1024 ** 768), you have made a 800*600 form. Everything can run normally,
However, with the company's display (17-inch flat screen 1024*768), the form will become larger, the width is almost the same as the display width, and the height will increase a lot,
(My current form style is this. formborderstyle = system. Windows. Forms. formborderstyle. None ;)
Open the project with Vs and find that the form size has changed,
At first, I reset the form size before the show () function, but it didn't work. Later I checked the information and found it in the form constructor. The underlying window has not been created yet, the operations on the form do not work. (This is not a bug I want to talk about, but a point of attention)
I manually go to the design interface and adjust the form size to 800*600. This is normal,
But after I adjusted it like this, I took it home and tested it on my own monitor. I found an exception. It turns out that the form is too small. When the form is displayed, it exceeded the form, that is, the form has changed again,
Later, I asked Microsoft engineers to know that this is a place where winform has not been fully designed.