Exemplo n.º 1
0
        public static void CreateRegion(Control ctrl, int RgnRadius)
        {
            var hRgn = NativeMethods.CreateRoundRectRgn(0, 0, ctrl.ClientRectangle.Width + 1,
                                                        ctrl.ClientRectangle.Height + 1, RgnRadius, RgnRadius);

            NativeMethods.SetWindowRgn(ctrl.Handle, hRgn, true);
        }