Winform窗体缺少左上角效果:
public void SetWindowRegion() { System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.Drawing.Drawing2D.GraphicsPath(); Rectangle rect = new Rectangle(0, 0, this.Width, this.Height); int diameter = 20; FormPath .AddRectangle(new Rectangle(rect.Location.X + diameter, rect.Location.Y, rect.Width - diameter, rect.Height)); FormPath .AddRectangle(new Rectangle(rect.Location.X, rect.Location.Y + diameter, diameter, rect.Height - diameter)); path.CloseFigure(); this.Region = new Region(FormPath); } protected override void OnResize(System.EventArgs e) { this.Region = null; SetWindowRegion(); }