falahati / circularprogressbar Goto Github PK
View Code? Open in Web Editor NEWCircular ProgressBar is a custom control for WinForm with animation.
Home Page: http://falahati.github.io/CircularProgressBar/
License: MIT License
Circular ProgressBar is a custom control for WinForm with animation.
Home Page: http://falahati.github.io/CircularProgressBar/
License: MIT License
One thing I love about cocoapods (iOS reusable code sharing mechanism) is people tend to be quite explicative about what their code does/doesn't do.
Specially for their readme they invest into graphics that display the look and feel of the product as well as the customisation of the element.
Have you thought about improving the documentation by including these elements? I am pretty sure that it will be something to look forward in the nuget community.
Using the progress bar several times (twice or more), setting its value, progressbar colors don't refresh.
Example
CircularProgressBar1.Value = 0
CircularProgressBar1.Text = CircularProgressBar1.Value.ToString
CircularProgressBar1.Value = 10
CircularProgressBar1.Text = CircularProgressBar1.Value.ToString
CircularProgressBar1.Value = 30
CircularProgressBar1.Text = CircularProgressBar1.Value.ToString
'Resetting value
CircularProgressBar1.Value = 0
CircularProgressBar1.Text = CircularProgressBar1.Value.ToString
CircularProgressBar1.Refresh()
First time works perfectly, from the second time the colors are not updated properly.
Thanks a lot
Best regards
Hello. After I downloaded the package via NuGet Packet Manager, I am getting the error has been attached although winFormAnimation.dll is in my references. The program works correctly but I cannot see the form in [Design] section. What can be the solution for this error? I deleted package and downloaded it again but it did not help. Thank you in advance.
Hello i've been using CircularProgressBar since last night, i've gotten it to say % but cannot get it to start from 0% to 20% without having this: 0.23% to 20.23%
I want to remove that ,23% from loading, but i do not know how. Could you help me please?
Use one of the following options to display the popup on async void
method, it cause Memory and Thread leakage.
MessageBoxOptions.DefaultDesktopOnly
MessageBoxOptions.ServiceNotification
Then, the pop-up will increase by about one thread per second while the pop-up is being displayed.
Create a new WinForms project, add one CircularProgressBar to the Form, and add an OnLoad event.
And change OnLoad method to async void
and await
something.
private async void Form1_Load(object sender, EventArgs e)
{
await Task.Delay(1000);
MessageBox.Show("Not Leak", "01", MessageBoxButtons.OK, MessageBoxIcon.Error); // Not Leak
MessageBox.Show("Not Leak", "02", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign); // Not Leak
MessageBox.Show("Not Leak", "03", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading); // Not Leak
MessageBox.Show("Leak", "04", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); // Leak
MessageBox.Show("Leak", "05", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification); // Leak
MessageBox.Show("Not Leak", "06", MessageBoxButtons.OK, MessageBoxIcon.Error); // Not Leak
}
Hello, I was wondering if it was possible to allow the user to change the value of the progress bar himself by clicking on where he wants as for the basic progress bar?
I can't change many colors in the same time.
Hi dude @falahati . Thxs for you sharing this amazing tool. I have a little problem, i have fixed a principal text tha is the avarage percentage, set the Sup and Sub Text to show other informations and place then in the center, but if i change the Principal Text the margin of sub and sup text change, they not stay in the original position... this is proposital or any kind of bug ? Becouse i cant set theier position to any location, so not make sense if i change de "TEXT" property this reflect in the other texts ... Sorry fot the English and here have some prints.
These are the error, I'm getting when I try to press the minimized button.
Can you please check, if it is a bug?
System.ArgumentException
HResult=0x80070057
Message=Parameter is not valid.
Source=System.Drawing
StackTrace:
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at CircularProgressBar.CircularProgressBar.RecreateBackgroundBrush()
at CircularProgressBar.CircularProgressBar.ParentOnResize(Object sender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.UserControl.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
g.FillPie(
new SolidBrush(ProgressColor),
ToRectangle(new RectangleF(point, size)),
_animatedStartAngle ?? StartAngle,
(_animatedValue ?? Value) / (Maximum - Minimum) * 360);
shoudl be
g.FillPie(
new SolidBrush(ProgressColor),
ToRectangle(new RectangleF(point, size)),
_animatedStartAngle ?? StartAngle,
(_animatedValue ?? (Value - Minimum)) / (Maximum - Minimum) * 360);
Hello,
I do not understand how to start the animation as shown in the example with the element N ° 5.
Thank you in advance
Can't add to VS 2017 with netframwork 4.5.2.
First of all, I thank the author for sharing such a good plug-in, but I don't want to use plug-in animation, so I put the "WinFormAnimation.KnownAnimationFunctions . none" is assigned to the "animationfunction" property , but an error is reported
The error information is as follows “The passed animation function is unknown. Parameter name: knownFunction Actual value was None.”
Ask the author for a solution
In general it is a bad idea to define UI elements as sealed, because a number of extensions are plausible (be it only forcing default values for its properties for example).
So I highly suggest to make it non-sealed.
First of, nice job with the progress bars, it has most of the functionality needed. However, I need to have a progress bar on top of another progress bar, thus making center transparent. Doing so results in an ultimate transparency where I get the background image instead of the progress bar laying behind.
Is it possible in any other way to have two progress bars laying on top of each other having the circle graphs laying next to each other?
With details "Value does not fall within the expected range.".
Using Visual Studio 2010, on .NET 4.0
It does this for both version 2.1.0 and 2.2.0
Edit1: Just noticed a similar issue was created, defining this exact same issue.
Apparently the reason it does not support Transparency, is because of AntiAliasing Reasons.
While It might be fine to just use the background colour, it does not however fix the issue of overlapping Forms, Text, and other Circular Progress Bars, as the background will create a horrible Square over the progress bar.
I will leave it up to falahati to either close or leave this issue open, until it is solved.
Please allow to disable animation all together.
Update a copy process with lots of small files; the CircularProgressBar will lag a lot!
I'm having problems to find the Control in my Toolbox. I added the package through nuget to my project that is made in .Net 3.5 and built it. But the Circular ProgressBar wont show up in my Toolbox.
'CircularProgressBar' and 'WinFormAnimation' do show up in my references, tho.
I can't set Transparent Background to the Circular Progress Bar
When i have a black background color on the form, i see a box around the circle, as a container.
Is there any way for hide it?
Thanks and regards
Hi.
We need this library for a self-contained Winforms-App on .NET 5. I tried to convert it to the new framework and it seems to be fairly easy.
I don't know what it takes to keep it compatible to the legacy .NET Framework (4.0) though. Do you have interest in supporting .NET 5 projects?
If the progress bar is set as Marquee, It becomes extremely buggy, and causes Visual Studio 2010 to crash every single time you try to delete the progress bar.
If you change the progress bar to Block or Continuous, and then delete the progress bar, it works fine.
Version 2.2.0 install using NuGet.
hi man I really appreciate it about this free tool.
I want to show just one text in middle of the progress circle. how to hide secondary text from it?
i am using vs 2017 with winform.
circularProgressbar is working great but if i use thread.sleep method under button click then circularProgressbar hang.
is there any event that i can use that event to handle the update progressbar.
i am using Marquee style.
Have you think in migrate tis thing to a mobile platform?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.