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

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

BrandonioProductions

BrandonioProductions

Күн бұрын

Пікірлер: 71
@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 =)
@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 :)
@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
@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...
@henriklauridsen9686
@henriklauridsen9686 11 жыл бұрын
Thank you. I enjoy they way you show how to. Hope you do many more.
@bobbriggs4287
@bobbriggs4287 4 жыл бұрын
Thanx for showing me how to perform a wait using thread sleep.
@babzo1
@babzo1 11 жыл бұрын
Another well explained tutorial .Thanks Brandon.U got d skill....
@empemitheos
@empemitheos 12 жыл бұрын
great video, so much clearer than the msdn docs
@TonyAwad88
@TonyAwad88 12 жыл бұрын
Good job on this. Clean and straight forward. Cheers
@enzanblazer
@enzanblazer 11 жыл бұрын
Amazing tutorial man, very clear and easy to follow.
@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
@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?
@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
@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?
@GameWithBrony
@GameWithBrony 11 жыл бұрын
Thank you very much! You helped me with making a program simillar to Tapatalk
@ryanthomas1902
@ryanthomas1902 9 жыл бұрын
I have done the check for illegal cross thread calls but am still getting the error... any ideas?
@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?
@gtag174
@gtag174 9 жыл бұрын
how do i do this if i need get the progress bar working with a data grid
@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!
@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!
@lightningz1712
@lightningz1712 6 жыл бұрын
Does backgroundworker continue to run if the form is closed?
@xxblinddxx
@xxblinddxx 13 жыл бұрын
Thanks.. just what i was looking for!
@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 9 жыл бұрын
same
@punksnotdead4766
@punksnotdead4766 2 жыл бұрын
Good tutorial
@herrjonna2007
@herrjonna2007 6 жыл бұрын
Amazing tutorial! These are rear, keep up the good work!
@enzanblazer
@enzanblazer 11 жыл бұрын
Do you have a video where you explain the delegates part?
@rogerbreton6412
@rogerbreton6412 4 жыл бұрын
Does not work in my application :(
@VidGaming
@VidGaming 8 жыл бұрын
Is the count milliseconds?
@LiableOne5
@LiableOne5 9 жыл бұрын
How do you cancel / stop the background worker
@ashraf.mohamed
@ashraf.mohamed 10 жыл бұрын
You are a genius. thank you very much :)
@Camixcs13
@Camixcs13 12 жыл бұрын
Thanks Great Tutorial :D It helped me with my "Email Sender" Application :)
@buddyroach
@buddyroach 8 жыл бұрын
can i use a background worker to run a timer? cuz i tried and its not working.
@CorruptKrown333
@CorruptKrown333 7 жыл бұрын
Run it on Form_Load.
@Atri48
@Atri48 12 жыл бұрын
How did you got that title sequence?
@Atri48
@Atri48 12 жыл бұрын
Do you have windows 8??
@femtozz
@femtozz 12 жыл бұрын
very very useful ... thank you
@dragoonadept
@dragoonadept 13 жыл бұрын
Internet heroes, the lot of you brave, brave souls.
@mattkingz
@mattkingz 11 жыл бұрын
Thank you for the tutorial! c:
@eduardocatoc8505
@eduardocatoc8505 6 жыл бұрын
thank you so much, sir!
@Hackerzpwned
@Hackerzpwned 12 жыл бұрын
Nice tut :)
@raygun2092
@raygun2092 4 жыл бұрын
god bless you speak english and no wierdo indian accent :D
@polasanderson6353
@polasanderson6353 10 жыл бұрын
Still freezing and even does not stop
@LedinukasTV
@LedinukasTV 12 жыл бұрын
Very nice theme. Can you send me link of your theme? (buttons, progressbars) Please. ;P I subed.
@ThomasOrlita
@ThomasOrlita 9 жыл бұрын
Thanks :)
@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
@drsybousse2658
@drsybousse2658 9 жыл бұрын
thnx
@kamilblaszczyk6631
@kamilblaszczyk6631 9 жыл бұрын
THX
@BrandonioProductions
@BrandonioProductions 9 жыл бұрын
+Kamil Blaszczyk NP! THX 4 WATCHING!
@fzotya22
@fzotya22 12 жыл бұрын
nice vid, +1 subsriber
@qwaxer
@qwaxer 13 жыл бұрын
3rd!!
@emann123456
@emann123456 13 жыл бұрын
ok
@ashraf.mohamed
@ashraf.mohamed 10 жыл бұрын
+1 :)
@Irishsam
@Irishsam 10 жыл бұрын
remove the spaces
@subs2meplease
@subs2meplease 13 жыл бұрын
6th!!!
@ganzstar98
@ganzstar98 13 жыл бұрын
4rd!!!
@Evanhorsley-brickman619
@Evanhorsley-brickman619 13 жыл бұрын
1st!!!
@umaidkhakwani
@umaidkhakwani 13 жыл бұрын
2nd!
@micahlawton
@micahlawton 10 жыл бұрын
sub
@MrVBMagic
@MrVBMagic 13 жыл бұрын
0th!!!
@Irishsam
@Irishsam 10 жыл бұрын
this is pathetic, urgh me.invoke(sub() me.label.text = "fucking few words to do this") delegating is hardly fucking hard is it?
@emann123456
@emann123456 13 жыл бұрын
not an expert!!!!
@DoubleDYouTube
@DoubleDYouTube 12 жыл бұрын
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...
Vb.NET - Using Save File Dialog Filters! (Visual Basic 2008/2010)
10:54
BrandonioProductions
Рет қаралды 18 М.
Visual Basic 2008/Visual Basic 2010/Vb.NET: How to use the ListView Control
11:39
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 7 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 36 МЛН
Add Notifications to any Vb.NET Project!
5:45
BrandonioProductions
Рет қаралды 25 М.
VB.NET: Creating Your Own Versions of Controls
20:23
BrandonioProductions
Рет қаралды 30 М.
VB.NET: Creating Custom Events (Visual Basic 2008/2010/2012)
22:46
BrandonioProductions
Рет қаралды 16 М.
Visual Basic .Net Multithreading
7:45
Paul Shiri
Рет қаралды 20 М.
VB.NET Tutorial 53 - MultiThreading (Visual Basic 2008/2010)
13:45
TeachMeComputer
Рет қаралды 112 М.
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 554 М.
Visual Basic How To: Threading!
12:51
Pillazo
Рет қаралды 15 М.