winform automatically maximizes (in different resolutions)

At the end of the load function add:

System.Drawing.Rectangle rec = Screen.GetWorkingArea(this);

            int SH = rec.Height;

            int SW = rec.Width;
            this.Width = SW;
            this.Height = SH;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325027360&siteId=291194637