Use .net to develop winform size issues for applications under different operating systems
Author:Eve Cole
Update Time:2009-06-30 15:59:46
2006 came and 2005 left. The new year was supposed to say goodbye to the old and welcome the new, but I went back to playing with vs2005 and started playing with vs2003 again. And I also played with windows programs again. I developed windows with net The first step when the program comes, actually should not be regarded as development, but should be regarded as maintenance, because the project has been formed and UAT has started. And I am only an observer. But I still gained something, I will write it down for nostalgia and Learn from others.
The original developer of my Chinese After thinking and asking for a long time, they also encountered a similar situation before, but finally gave up and switched to e-text operating system. Finally, I focused on the font and resolution. Although in different environments, the form size Changes and font changes are normal, but if they are cut off, it means the program is deficient. I tried N times, read N many related introductions, and carefully looked at one of their pages. When I was almost giving up, I finally found it. The crux of the problem is revealed. In vs2003, the font is generally set to a system default value. In the CS code, it is not set. Then in different systems, the system uses the default font for analysis, so the page appears. The control and size are confused. If it is set to a specific value, then this problem will not exist. Therefore, it is necessary to forcibly specify the font attribute. Of course, it is not necessary to set it for every control. It only needs to be set to the form layer. .Controls within a form generally inherit form properties (except for special settings).