Sometimes there are functions you want your program to perform in the background while you are busy doing other things. For example, if you are building a picture viewer application you may not want to wait until thumbnails are generated before getting on with the business of viewing the pictures. If you have ever used the [FastStone Image Viewer](http://www.faststone.org/FSViewerDetail.htm) you will have noticed the progress bar at the bottom of the screen when browsing to a new folder. That bar shows the progress of a background thread which is busy scanning the current folder. If you try to change the …

Member Avatar
Member Avatar
+3 forum 2

I have never used a background worker in vb.net, but from what I have read, I think it will help resolve an issue I am having during runtime. I am executing an sql statement, but it takes a bit to process. I think a background worker could help with this but I am unsure how to to implement this correctly. I greatly appreciate any help, tips, or comments. Thanks in advance! Private Sub DeparmentButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn3EData.Click, Btn3WData.Click, Btn4EData.Click, BtnCCUData.Click, BtnERData.Click, BtnAllData.Click, BtnMatData.Click 'Declare variable Dim SelectedDeptButton As Button = CType(sender, Button) 'Sends Department …

Member Avatar
Member Avatar
+0 forum 1

Ok So I have to create a Date Class that will allow me to return the current day with data members of month , day, and year this is what I have for from my Main() class: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DateApp2 { class DateApp { static void Main(); { DateApp date1 = new DateApp (10, 31, 2011, "10/31/11"); Console.Write (date1); } public static void DisplayResults(DateApp someDate) { Console.Clear(); Console.WriteLine("Current Date: " + someDate.CalculateDate().ToString("F1"); } } // end of Main } // end of DateApp Class } //end of namespace [/CODE] and this is what …

Member Avatar
Member Avatar
+0 forum 4

So I have a component that renders very slowly. The problem is that I can only render inside the event handling thready, which shouldn't be freezed. Long ago in pascal/assembly I used backbuffer and page flipping. I've read that Java supports double buffering, but no info about thread safety. So the question is, how can I render in a worker thread, and then show it in the event handling one? Thanks!

Member Avatar
Member Avatar
+0 forum 1

The End.