예제 #1
0
 public static void Apply(Control ctrl, int _Elipse)
 {
     try
     {
         ctrl.Region = Region.FromHrgn(Elipse.CreateRoundRectRgn(0, 0, ctrl.Width, ctrl.Height, _Elipse, _Elipse));
     }
     catch (Exception ex)
     {
     }
 }
예제 #2
0
 public static void Apply(Form ctrl, int _Elipse2)
 {
     try
     {
         ctrl.FormBorderStyle = FormBorderStyle.None;
         ctrl.Region          = Region.FromHrgn(Elipse.CreateRoundRectRgn(0, 0, ctrl.Width, ctrl.Height, _Elipse2, _Elipse2));
     }
     catch (Exception ex)
     {
     }
 }