Do you have a tutorial for the delegates? I can work for this for now with my applications, but i know crossthreading is dangerous, i would like to learn delegates aswell
I've got a few hundreds of tasks to run, of which I'd like 4 to run parallel each time. Any thoughts on how to do that? I guess 4 background workers should do the trick, but then again: how do I keep track of which worker has finished and can start a new task? Or would a PoolThread be a better option here?
Thanks a lot. I've been looking for a good tutorial to show me this. I needed to monitor the clock speed of my cpu but my GUI was going all non-responsive. This is exactly what I needed :)
Question, I have implemented a background worker and works great. The project I am working on basically copies a the entirety of one directory to another. If a file fails to copy(ie. it is to long for the destination path) then it catches the file as an exception and write the file name and path a a text file entitled 'error log'. The background worker works in when the are no exception files caught, but if an exception is caught, the report progress of the background workers is failing to continue adding a file counter to the total progress even though I have a variable dedicated to counting the files even this cases and reported this number to the report Progress method. The background worker end prematurely in the later case, even though there is still plenty of "work" to be done. Any ideas?
the code is good but if you use it for scraper to scrape links so it starts freezing a a little bit. Now i need to know how to stop the backgroundworker cuz the cancelasyn() is not working at all Thank you.
Thanks a ton! Now I actually know how I can make my program download stuff! Could you also make a tutorial with the same kind of topic, just one where the backgroundworker saves the file/s to a specific location? If yes, then that would be awesome!
Hi sir, thank you for this wonderful tutorial, it really helps me a lot, but if you don't mind, may I ask a favor on how to apply this progressbar and backgroundworker in saving data from datagridview to ms access database. Thank you so much for any help sir. God Bless!
Hi, Forcing "Ignore cross-thread errors" is not recommended. You should update all ui controls in the report_progress event, just like you did for the progress bar. Not the best advice from a tutorial!
Do you have a tutorial for the delegates? I can work for this for now with my applications, but i know crossthreading is dangerous, i would like to learn delegates aswell
i want to show a picture of a loading.gif with the background worker. rather than a progress bar.. can you help me with this please?
It seems that loops run annoyingly slower in the BackgroundWorker than in the default Thread. Is there a solution or alternative to that?
how do i do this if i need get the progress bar working with a data grid
I've got a few hundreds of tasks to run, of which I'd like 4 to run parallel each time. Any thoughts on how to do that? I guess 4 background workers should do the trick, but then again: how do I keep track of which worker has finished and can start a new task? Or would a PoolThread be a better option here?
Thanks a lot. I've been looking for a good tutorial to show me this. I needed to monitor the clock speed of my cpu but my GUI was going all non-responsive. This is exactly what I needed :)
Question, I have implemented a background worker and works great.
The project I am working on basically copies a the entirety of one directory to another. If a file fails to copy(ie. it is to long for the destination path) then it catches the file as an exception and write the file name and path a a text file entitled 'error log'. The background worker works in when the are no exception files caught, but if an exception is caught, the report progress of the background workers is failing to continue adding a file counter to the total progress even though I have a variable dedicated to counting the files even this cases and reported this number to the report Progress method. The background worker end prematurely in the later case, even though there is still plenty of "work" to be done.
Any ideas?
Have you tried using Try, catch
Do you have a video where you explain the delegates part?
Awesome. Best tutorial I've seen about coding, and I've seen a lot.
can i use a background worker to run a timer? cuz i tried and its not working.
Run it on Form_Load.
Is the count milliseconds?
the code is good but if you use it for scraper to scrape links so it starts freezing a a little bit.
Now i need to know how to stop the backgroundworker
cuz the cancelasyn() is not working at all
Thank you.
same
I tried to make a file copier or a downloader and progressbar doesn't work! Why?
@@Personal-rc7cy Uh... Sure... Let me just dig up my 9 year old Visual Basic projects...
How do you cancel / stop the background worker
Does backgroundworker continue to run if the form is closed?
Does not work in my application :(
How did you got that title sequence?
Thanks a ton! Now I actually know how I can make my program download stuff!
Could you also make a tutorial with the same kind of topic, just one where the backgroundworker saves the file/s to a specific location? If yes, then that would be awesome!
Hi sir, thank you for this wonderful tutorial, it really helps me a lot, but if you don't mind, may I ask a favor on how to apply this progressbar and backgroundworker in saving data from datagridview to ms access database. Thank you so much for any help sir. God Bless!
spontaneous and straight to the point .. thank you
Another well explained tutorial .Thanks Brandon.U got d skill....
Hi,
Forcing "Ignore cross-thread errors" is not recommended. You should update all ui controls in the report_progress event, just like you did for the progress bar.
Not the best advice from a tutorial!
Pro tip: watch series on Flixzone. Me and my gf have been using it for watching all kinds of movies these days.
@Draven Adonis Yup, I have been using Flixzone for years myself =)
to fix it its simple just modify your label1 text like this
Me.Invoke(Sub() Label1.Text = i) like this no need to add checkforillegal...
great video, so much clearer than the msdn docs
Thank you. I enjoy they way you show how to. Hope you do many more.
Amazing tutorial man, very clear and easy to follow.
Do you have windows 8??
Thanx for showing me how to perform a wait using thread sleep.
Good job on this. Clean and straight forward. Cheers
Thank you very much! You helped me with making a program simillar to Tapatalk
Still freezing and even does not stop
Amazing tutorial! These are rear, keep up the good work!
Thanks.. just what i was looking for!
Thanks Great Tutorial :D
It helped me with my "Email Sender" Application :)
You are a genius. thank you very much :)
Internet heroes, the lot of you brave, brave souls.
Very nice theme. Can you send me link of your theme? (buttons, progressbars) Please. ;P I subed.
Good tutorial
very very useful ... thank you
thank you so much, sir!
Instead using backgroundworker, you could use the Async method.
Private Async Sub Button.clicked bla bla
your code
await task.delay(200)
end sub
Thank you for the tutorial! c:
Nice tut :)
god bless you speak english and no wierdo indian accent :D
ok
Thanks :)
thnx
remove the spaces
THX
+Kamil Blaszczyk NP! THX 4 WATCHING!
nice vid, +1 subsriber
this is pathetic, urgh me.invoke(sub() me.label.text = "fucking few words to do this") delegating is hardly fucking hard is it?
+1 :)
6th!!!
3rd!!
4rd!!!
sub
2nd!
0th!!!
1st!!!
not an expert!!!!
I have done the check for illegal cross thread calls but am still getting the error... any ideas?