Circular Progressbar using C#
ฝัง
- เผยแพร่เมื่อ 10 พ.ย. 2024
- This video shows how to create a circular progress bar using C# (.net 4.5 framework)
To code this project I used: drawpie and drawstring and Task.Run function.
you can share this video with your friend and use in your project
Java: • Circular Progressbar u...
Objective-C/Cocoa: • Circular Progressbar u...
Thank you so much, I have learned so much from your code, God Bless and Thank you for putting this out for people to learn from.
Fantastic. I am learning C# and that is next thing on my list to learn and you video cleared few things for me.
Thank you.
Thank you for this tutorial! I had to translate that in to vb.net first, struggled with the invoke phrase a long time due to late time and less coffee aaand: misswriting ugrade, that should be update (face palm / lol). But a sleep later all is finished and runs! Please more of .net Tutorials from scratch! We learn so much through that! :)
amazing UI men . i love this channel .
hi Rahul - Do you have a similar kind of video using WPF? if so can you share it. Thanks!
awesome work. Thank you
Good tutorial, thank you sir.
NYC video. Can u share the code
Awesome content buddy!
+Alvaro Delgado thanks, watch this too,
th-cam.com/video/sh1JFC4AA-8/w-d-xo.html
delegate n event added
yeah! I saw that one too, brilliant! Based on these videos, I am building an auto-save indicator (for example, it saves a document automatically every 'x' seconds showing the circular progress bar effect to let the user know when the document is goind to be saved and, when done, whether it was successful or not by changing the inner circle color). Also, I changed it to inherit from Control instead of UserControl so I can embed it into a toolstrip. Thank you so much for such a great contribution to the community my friend. Kudos!
+Alvaro Delgado , welcome
Thanks for a draws-from-scratch tutorial. I want to create this progress bar for an Excel Dashboard using c#. I have replicated your method with excel interop except the numeric progress in percentage. Could you please help out with some suggestions. Tried textbox but realized that it'll not work. Much thanks in advance
+Summer West , I hope it help u and subscribe
th-cam.com/video/sh1JFC4AA-8/w-d-xo.html
Beautiful!!
How do I resolve the error Task.Run
not let me do the action I'm missing?
Error 10 'System.Threading.Tasks.Task' does not contain a definition for 'Run'
+Mike Vega , change your .net framework from 4.0 to 4.5
task.run is not available in 4.0
CodeVlog, How about dotnet v4.0? I want to create this circular progressbar in V4.0 ?
+Mr. Fun then use Task.Factory.StartNew its in system.thread
I don't really know how to attach it to something that can hit 100
could you show an example of some code attached to the progress bar?
(so that i can make the color of the progress bar become green once it hits 100 and so that i can make my form show a message (label) and open a new form once it has hit 100.)
+Loïc Ruiz I created it as user control, you can drag and drop from toolbox into your form and use progress value
if progress==100 {
change first pie color red then render pie and show label , can also open form
}
in the code of the user control i've already managed to turn the color green once progress hits 100. the label is in the code of my form, so i dont really know how to use 'progress' there since thats in my user control. But thanks a lot, i'm 99% close to what i want the log in form im making to be. And your tutorial was one of the best i've seen. i love that you made a user control for the circular loading bar, its nice and clean in my log in form.
+Loïc Ruiz , thanks, for label you can define delegate and event in user control and then implement event in your code
inside usercontrol:
public delegate void progresscomplete()
public event progresscomplete onComplete;
if(progress==100){
onComplete()
}
inside your code:
pb.progresscomplete+=pb_progresscomplete
pb_progresscomplete(){
invoke label here and do your code
}
hi can i know the if difference when i'm using "user control" and "windows form" ?
+SYAZWANIE , if programmer don't want to use default controls(button, trackbar etc) provided with SDK , then programmer defines own controls that called User Controls, it gives more control over graphics and data processing. Programmer can also add default controls in user controls. Once created can be used in any windows application
Window form is GUI hosts to load default controls and user controls.
ADAM VAR ADAM GİBİ thx dude
Thanks very much.
how can i set the process bat to count the amount of time needed for a process?
+kyriacos h , that will be released in future
Great videos man let me know when you make that video!!
How about XAML? Why you created it on C#?
+Марк , will upload in future
i cant found task method in the run button
+nabeel ur rehaman use .net 4.5
i am change the to .net 4.5 but the error is still
+nabeel ur rehaman use breakpoint and debug your code
ok
how about create a usage of cpu and ram ? using vb.net :/
+Instant Transmission, will code, but not in vb(way bad)
You code error for Visual Studio 2015 for C# progress bar not 100%.
Correct for line error:
for (int num = 0; num < 101; num++)
+Suite Comercial start from 0 to 100
math logic is nunx3.6 and num is 0,1,2,3.....100
How do I open another form when you get 100%?
+Henrique Rodrigues if num =100 then invoke your control
label.invoke((methodinvoker)delegate(){
})
And I have to start the progress bar when the form of the same open (without clicking the button)?
+Henrique Rodrigues progress bar is used to show progress, you need to attach it to some work that can pass 0 to 100, if 100 then invoke control
Yes, yes, I have a job almost done, there decided on its progressbar to become more pleasant, I used the common timer, and that the code is totally different to a little lost XD, but thanks
+Henrique Rodrigues time elapsed/predicted time, will give you progress
does not work in vs2017 ... damn till 5:46 everthing worked but when i want to drag n drop the from toolbox inside Form there is an error. I hate that every tutorial i start about progressbar doesnt works in vs2017...
+Tam Gaming, i never tested on vs 2017, may be ide error. user control must be compiled before use in form. check your code with breakpoint
thanks for your answer, i know its not your fault! :-) Your answer is too advanced for me - i am a beginner and looked for beginner friendly projects which use GUI Projects, and bring some visible results instead of boring console things :-)
+Tam Gaming, then complete your beginner phase in console, once you understand programming then try to combine geometry and programming
I think you must be right, but its sooo boring to do this console things :-) But i will try to find the power to learn all things with console first :-) Can you recomend any tuturials for this? :-) Thanks for open my eyes in this case that i have to go the hard and boring way first :-)
+Tam Gaming , pick any borland turbo c book, read and code
Good Video Bro :D
How can we use it without button i.e with main form load to open a new form ??. i wanna put progress bar on main form then on completion wanna open new form