/// <summary>
 /// Releases the unmanaged resources used by the <see cref="T:System.ComponentModel.Component" /> and optionally releases the managed resources.
 /// </summary>
 /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (this.effectedControl != null)
     {
         this.effectedControl.Region = Region.FromHrgn(ZeroitObjectEllipse.CreateRoundRectRgn(0, 0, this.effectedControl.Width, this.effectedControl.Height, 0, 0));
     }
 }
 /// <summary>
 /// Sets the custom region.
 /// </summary>
 private void SetCustomRegion()
 {
     if (this.effectedControl != null)
     {
         this.effectedControl.Region       = Region.FromHrgn(ZeroitObjectEllipse.CreateRoundRectRgn(0, 0, this.effectedControl.Width, this.effectedControl.Height, 0, 0));
         this.effectedControl.Region       = Region.FromHrgn(ZeroitObjectEllipse.CreateRoundRectRgn(0, 0, this.effectedControl.Width, this.effectedControl.Height, this.cornerRadius, this.cornerRadius));
         this.effectedControl.SizeChanged += new EventHandler(this.Container_SizeChanged);
     }
 }
 /// <summary>
 /// Handles the SizeChanged event of the Container control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void Container_SizeChanged(object sender, EventArgs e)
 {
     this.effectedControl.Region = Region.FromHrgn(ZeroitObjectEllipse.CreateRoundRectRgn(0, 0, this.effectedControl.Width, this.effectedControl.Height, this.cornerRadius, this.cornerRadius));
 }