Goran Bibic

Goran Bibic

  • 474
  • 2.9k
  • 201.2k

Maximize rounded form C#

Jan 11 2023 9:10 AM

I use code to draw rounded form

this.FormBorderStyle = FormBorderStyle.None;
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));

 

When use maximize function form size stay same

this.WindowState = FormWindowState.Maximized;



What need to change to work maximize function?

 


Answers (1)