spotbravo.blogg.se

Circular studio for windows
Circular studio for windows












circular studio for windows

Open your application where you want to use Circular Progress Bar. Then you can Use this control any where you want to show progressbar. Graphics.DrawString(Convert.ToString(Convert.ToInt32((100 / _Maximum) * _Value)), Font, Brushes.White, Convert.ToInt32(Width / 2 - MS.Width / 2), Convert.ToInt32(Height / 2 - MS.Height / 2)) SizeF MS = graphics.MeasureString(Convert.ToString(Convert.ToInt32((100 / _Maximum) * _Value)), Font) Using (LinearGradientBrush brush2 = new LinearGradientBrush(this.ClientRectangle, Color.FromArgb(0x34, 0x34, 0x34), Color.FromArgb(0x34, 0x34, 0x34), LinearGradientMode.Vertical)) Using (LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle, this._ProgressColor1, this._ProgressColor2, LinearGradientMode.ForwardDiagonal)) Graphics.SmoothingMode = SmoothingMode.AntiAlias Using (Graphics graphics = Graphics.FromImage(bitmap)) Using (Bitmap bitmap = new Bitmap(this.Width, this.Height)) Protected override void OnPaint(PaintEventArgs e) Protected override void OnPaintBackground(PaintEventArgs p) Protected override void OnSizeChanged(EventArgs e)

circular studio for windows

Protected override void OnResize(EventArgs e) Private Color _ProgressColor2 = Color.FromArgb(92, 92, 92)

circular studio for windows

Private Color _ProgressColor1 = Color.FromArgb(92, 92, 92) Public class CircularProgressBar : Control

CIRCULAR STUDIO FOR WINDOWS CODE

the sample code in that article is : #region Includes














Circular studio for windows