Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralData Table Relation in Dataset Pin
Rijz20-Jan-08 19:43
Rijz20-Jan-08 19:43 
QuestionSocket Programming - Detecting Client Disconnection Pin
Raja_Pandian20-Jan-08 18:44
Raja_Pandian20-Jan-08 18:44 
GeneralRe: Socket Programming - Detecting Client Disconnection Pin
m@u20-Jan-08 23:16
m@u20-Jan-08 23:16 
GeneralBackgroundWorker never completes it's work Pin
Clive D. Pottinger20-Jan-08 14:33
Clive D. Pottinger20-Jan-08 14:33 
GeneralRe: BackgroundWorker never completes it's work Pin
S. Senthil Kumar20-Jan-08 20:15
S. Senthil Kumar20-Jan-08 20:15 
GeneralRe: BackgroundWorker never completes it's work Pin
Clive D. Pottinger21-Jan-08 4:31
Clive D. Pottinger21-Jan-08 4:31 
GeneralRe: BackgroundWorker never completes it's work Pin
Clive D. Pottinger21-Jan-08 4:34
Clive D. Pottinger21-Jan-08 4:34 
GeneralRe: BackgroundWorker never completes it's work Pin
S. Senthil Kumar21-Jan-08 19:49
S. Senthil Kumar21-Jan-08 19:49 
BackgroundWorker is meant to be used for running long running operations in the background - essentially operations for which you would create a Thread yourself. The difference is that you can use the BackgroundWorker to report progress and completion without having to manually use Invoke or BeginInvoke. Bulk file copy and application initialization (with a splash screen indicating progress) are two places where a BackgroundWorker would work well.

The reason I suggested that you use Invoke/BeginInvoke was that you were not running any big operations in DoWork, you were simply using it to marshal the call to the UI thread by setting the Result property. That is exactly what Invoke/BeginInvoke is supposed to do. What's more, the BackgroundWorker's DoWork will run on a threadpool thread - this is in addition to the other thread on which you're doing the actual work. Invoke/BeginInvoke will not use a threadpool thread, it simply causes the delegate to execute on the UI thread.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | My Flickr | WinMacro

GeneralFlush JITtered Code Pin
Jeffrey Walton20-Jan-08 13:15
Jeffrey Walton20-Jan-08 13:15 
GeneralRe: Flush JITtered Code Pin
DavidNohejl20-Jan-08 15:17
DavidNohejl20-Jan-08 15:17 
GeneralCall constructor of parent class Pin
Jordanwb20-Jan-08 12:54
Jordanwb20-Jan-08 12:54 
AnswerRe: Call constructor of parent class Pin
Guffa20-Jan-08 13:13
Guffa20-Jan-08 13:13 
GeneralRe: Call constructor of parent class Pin
Jordanwb20-Jan-08 13:27
Jordanwb20-Jan-08 13:27 
Questionhow to convert access to sdf ? Pin
E_Gold20-Jan-08 10:40
E_Gold20-Jan-08 10:40 
GeneralGet *complete* XML from XDocument or convert to XMLDocument [modified] Pin
DaveyM6920-Jan-08 5:25
professionalDaveyM6920-Jan-08 5:25 
GeneralRe: Get *complete* XML from XDocument or convert to XMLDocument Pin
Paul Conrad20-Jan-08 9:01
professionalPaul Conrad20-Jan-08 9:01 
GeneralRe: Get *complete* XML from XDocument or convert to XMLDocument Pin
DaveyM6920-Jan-08 23:45
professionalDaveyM6920-Jan-08 23:45 
QuestionICaptureGraphBuilder2's FindPin() returning -tive value Pin
B!Z20-Jan-08 4:44
B!Z20-Jan-08 4:44 
GeneralRe: ICaptureGraphBuilder2's FindPin() returning -tive value Pin
Gareth H20-Jan-08 5:24
Gareth H20-Jan-08 5:24 
GeneralRe: ICaptureGraphBuilder2's FindPin() returning -tive value Pin
B!Z21-Jan-08 6:08
B!Z21-Jan-08 6:08 
QuestionListview focus Pin
eyalbi00720-Jan-08 3:38
eyalbi00720-Jan-08 3:38 
GeneralRe: Listview focus Pin
DaveyM6920-Jan-08 5:00
professionalDaveyM6920-Jan-08 5:00 
QuestionListview vertical location - please help Pin
eyalbi00720-Jan-08 2:38
eyalbi00720-Jan-08 2:38 
AnswerRe: Listview vertical location - please help Pin
TJoe30-Jan-08 11:17
TJoe30-Jan-08 11:17 
AnswerRe: Listview vertical location - please help Pin
Orzer9-Sep-09 17:13
Orzer9-Sep-09 17:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.