예제 #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)
     {
     }
 }
예제 #3
0
 private void ProgressBar2_Resize(object sender, EventArgs e)
 {
     this.slider.Width = this.Width * this._Value / this.Maximum_Value;
     Elipse.Apply((Control)this.slider, this.int_0);
     Elipse.Apply((Control)this, this.int_0);
 }