12345678[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]private static extern IntPtr CreateRoundRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidthEllipse, int nHeightEllipse); private void Form1_Load(object sender, EventArgs e) { pnlComponent.Region = Region.FromHrgn(CreateRoundRectRgn(0, 0, pnlComponent.Width, pnlComponent.Height, 15, 15)); lblCAM.Region..