Vb.NET (Visual Basic 2008/2010) : How to use a BackgroundWorker

  Рет қаралды 61,918

BrandonioProductions

BrandonioProductions

Күн бұрын

Пікірлер: 71
@chriscowman
@chriscowman 12 жыл бұрын
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 :)
@darrenlogan6438
@darrenlogan6438 8 жыл бұрын
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!
@dravenadonis8952
@dravenadonis8952 3 жыл бұрын
Pro tip: watch series on Flixzone. Me and my gf have been using it for watching all kinds of movies these days.
@christianotto3910
@christianotto3910 3 жыл бұрын
@Draven Adonis Yup, I have been using Flixzone for years myself =)
@henriklauridsen9686
@henriklauridsen9686 11 жыл бұрын
Thank you. I enjoy they way you show how to. Hope you do many more.
@JonahLiu
@JonahLiu 11 жыл бұрын
Awesome. Best tutorial I've seen about coding, and I've seen a lot.
@firasdaw6745
@firasdaw6745 4 жыл бұрын
spontaneous and straight to the point .. thank you
@RandomGermanBrit
@RandomGermanBrit 12 жыл бұрын
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!
@babzo1
@babzo1 11 жыл бұрын
Another well explained tutorial .Thanks Brandon.U got d skill....
@Doowi92
@Doowi92 5 жыл бұрын
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...
@bobbriggs4287
@bobbriggs4287 4 жыл бұрын
Thanx for showing me how to perform a wait using thread sleep.
@TonyAwad88
@TonyAwad88 12 жыл бұрын
Good job on this. Clean and straight forward. Cheers
@GabrielM01
@GabrielM01 4 жыл бұрын
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
@dragoonadept
@dragoonadept 13 жыл бұрын
Internet heroes, the lot of you brave, brave souls.
@SiebeBosch
@SiebeBosch 9 жыл бұрын
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?
@GameWithBrony
@GameWithBrony 11 жыл бұрын
Thank you very much! You helped me with making a program simillar to Tapatalk
@empemitheos
@empemitheos 12 жыл бұрын
great video, so much clearer than the msdn docs
@enzanblazer
@enzanblazer 11 жыл бұрын
Amazing tutorial man, very clear and easy to follow.
@enzanblazer
@enzanblazer 11 жыл бұрын
Do you have a video where you explain the delegates part?
@romzcodie2337
@romzcodie2337 3 жыл бұрын
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!
@xxblinddxx
@xxblinddxx 13 жыл бұрын
Thanks.. just what i was looking for!
@skateboarderboy1
@skateboarderboy1 9 жыл бұрын
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?
@razorramzan-inc
@razorramzan-inc 4 жыл бұрын
Have you tried using Try, catch
@herrjonna2007
@herrjonna2007 6 жыл бұрын
Amazing tutorial! These are rear, keep up the good work!
@Tonio2110
@Tonio2110 12 жыл бұрын
It seems that loops run annoyingly slower in the BackgroundWorker than in the default Thread. Is there a solution or alternative to that?
@punksnotdead4766
@punksnotdead4766 2 жыл бұрын
Good tutorial
@lightningz1712
@lightningz1712 6 жыл бұрын
Does backgroundworker continue to run if the form is closed?
@Atri48
@Atri48 12 жыл бұрын
How did you got that title sequence?
@Camixcs13
@Camixcs13 12 жыл бұрын
Thanks Great Tutorial :D It helped me with my "Email Sender" Application :)
@leocfox
@leocfox 12 жыл бұрын
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?
@VidGaming
@VidGaming 8 жыл бұрын
Is the count milliseconds?
@Atri48
@Atri48 12 жыл бұрын
Do you have windows 8??
@polasanderson6353
@polasanderson6353 10 жыл бұрын
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.
@LiableOne5
@LiableOne5 10 жыл бұрын
same
@gtag174
@gtag174 9 жыл бұрын
how do i do this if i need get the progress bar working with a data grid
@femtozz
@femtozz 12 жыл бұрын
very very useful ... thank you
@Hackerzpwned
@Hackerzpwned 12 жыл бұрын
Nice tut :)
@ashraf.mohamed
@ashraf.mohamed 10 жыл бұрын
You are a genius. thank you very much :)
@buddyroach
@buddyroach 8 жыл бұрын
can i use a background worker to run a timer? cuz i tried and its not working.
@CorruptKrown333
@CorruptKrown333 8 жыл бұрын
Run it on Form_Load.
@LiableOne5
@LiableOne5 10 жыл бұрын
How do you cancel / stop the background worker
@mattkingz
@mattkingz 11 жыл бұрын
Thank you for the tutorial! c:
@eduardocatoc8505
@eduardocatoc8505 6 жыл бұрын
thank you so much, sir!
@DoubleDYouTube
@DoubleDYouTube 13 жыл бұрын
I tried to make a file copier or a downloader and progressbar doesn't work! Why?
@DoubleDYouTube
@DoubleDYouTube 3 жыл бұрын
@@Personal-rc7cy Uh... Sure... Let me just dig up my 9 year old Visual Basic projects...
@raygun2092
@raygun2092 4 жыл бұрын
god bless you speak english and no wierdo indian accent :D
@rogerbreton6412
@rogerbreton6412 4 жыл бұрын
Does not work in my application :(
@ThomasOrlita
@ThomasOrlita 9 жыл бұрын
Thanks :)
@kamilblaszczyk6631
@kamilblaszczyk6631 9 жыл бұрын
THX
@BrandonioProductions
@BrandonioProductions 9 жыл бұрын
+Kamil Blaszczyk NP! THX 4 WATCHING!
@drsybousse2658
@drsybousse2658 9 жыл бұрын
thnx
@LedinukasTV
@LedinukasTV 12 жыл бұрын
Very nice theme. Can you send me link of your theme? (buttons, progressbars) Please. ;P I subed.
@polasanderson6353
@polasanderson6353 10 жыл бұрын
Still freezing and even does not stop
@peterschiller2451
@peterschiller2451 8 жыл бұрын
Instead using backgroundworker, you could use the Async method. Private Async Sub Button.clicked bla bla your code await task.delay(200) end sub
@fzotya22
@fzotya22 13 жыл бұрын
nice vid, +1 subsriber
@qwaxer
@qwaxer 13 жыл бұрын
3rd!!
@emann123456
@emann123456 13 жыл бұрын
ok
@ashraf.mohamed
@ashraf.mohamed 10 жыл бұрын
+1 :)
@subs2meplease
@subs2meplease 13 жыл бұрын
6th!!!
@Irishsam
@Irishsam 11 жыл бұрын
remove the spaces
@umaidkhakwani
@umaidkhakwani 13 жыл бұрын
2nd!
@ganzstar98
@ganzstar98 13 жыл бұрын
4rd!!!
@micahlawton
@micahlawton 10 жыл бұрын
sub
@Evanhorsley-brickman619
@Evanhorsley-brickman619 13 жыл бұрын
1st!!!
@MrVBMagic
@MrVBMagic 13 жыл бұрын
0th!!!
@emann123456
@emann123456 13 жыл бұрын
not an expert!!!!
@Irishsam
@Irishsam 11 жыл бұрын
this is pathetic, urgh me.invoke(sub() me.label.text = "fucking few words to do this") delegating is hardly fucking hard is it?
@ryanthomas1902
@ryanthomas1902 9 жыл бұрын
I have done the check for illegal cross thread calls but am still getting the error... any ideas?
Vb.NET - Using Save File Dialog Filters! (Visual Basic 2008/2010)
10:54
BrandonioProductions
Рет қаралды 18 М.
How to use a BackgroundWorker :: Vb.NET
24:24
Challenger Tech.
Рет қаралды 3,6 М.
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 24 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 140 МЛН
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН
VB.NET: Creating Your Own Versions of Controls
20:23
BrandonioProductions
Рет қаралды 30 М.
How to Use BackgroundWorker Load Value to Progressbar in VB NET 2012
7:11
[VB.NET] Multi-Threading Properly Using Delegates
6:09
HFPerplexity
Рет қаралды 36 М.
Vb.net - Using Object Oriented Programming
18:18
BrandonioProductions
Рет қаралды 40 М.
BackGroundWorker MYSQL Query - Visual Basic 2015
7:22
Zuriel Barrios
Рет қаралды 3,6 М.
Visual Basic 2008/Visual Basic 2010/Vb.NET: How to use the ListView Control
11:39
62. .NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
VB.NET - How to use BackgroundWorker
8:59
Csharp Tutorials
Рет қаралды 10 М.