Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: GDI+ Gradients Pin
MoustafaS11-Mar-05 8:00
MoustafaS11-Mar-05 8:00 
GeneralRe: GDI+ Gradients Pin
C Flat13-Mar-05 7:31
C Flat13-Mar-05 7:31 
GeneralAnother thread question Pin
PaleyX11-Mar-05 2:54
PaleyX11-Mar-05 2:54 
GeneralRe: Another thread question Pin
PaleyX11-Mar-05 2:55
PaleyX11-Mar-05 2:55 
GeneralRe: Another thread question Pin
TylerBrinks11-Mar-05 4:51
TylerBrinks11-Mar-05 4:51 
GeneralRe: Another thread question Pin
PaleyX11-Mar-05 5:18
PaleyX11-Mar-05 5:18 
GeneralRe: Another thread question Pin
TylerBrinks11-Mar-05 5:56
TylerBrinks11-Mar-05 5:56 
GeneralAmother thread question Pin
PaleyX11-Mar-05 2:48
PaleyX11-Mar-05 2:48 
My app was never designed to support threading - The GUI has a VB6 front end but I have rewritten it in VB.NET with a C# backend - don't ask WTF | :WTF:

Some of the operations in the C# back end can take a long time are thus good candidates for running on a worker thread - these operations communicate back to the GUI using events - status information, adding rows to a datagrid, progress bar etc.

As I am new to threads in .NET can I still use the events from the function running on the worker thread but just change the event sinks so they use BeginInvoke to update the GUI controls?

The class which contains the long running operations has some database code in it - can I call that code from the long running operation on the new thread just as I would if it wasn't running on the thread? I don't believe I have any synchronisation issues as the database is always read only - the only reason I want the long running operation to run on a separate thread is so the GUI remains responsive, I dont actually intend to let the user do anything with the GUI other than maybe cancel the long running operation.

TIA
GeneralRe: Amother thread question Pin
turbochimp11-Mar-05 16:18
turbochimp11-Mar-05 16:18 
GeneralReloading a webform page Pin
3Dizard11-Mar-05 2:40
3Dizard11-Mar-05 2:40 
GeneralRe: Reloading a webform page Pin
DavidNohejl11-Mar-05 7:10
DavidNohejl11-Mar-05 7:10 
GeneralRe: Reloading a webform page Pin
turbochimp11-Mar-05 16:26
turbochimp11-Mar-05 16:26 
GeneralRe: Reloading a webform page Pin
turbochimp11-Mar-05 16:27
turbochimp11-Mar-05 16:27 
GeneralTooltip on a Combo Box Pin
Member 62119111-Mar-05 2:07
Member 62119111-Mar-05 2:07 
GeneralSocket Comms and a Web Browser Cntrl Pin
Chris Ulliott11-Mar-05 1:29
Chris Ulliott11-Mar-05 1:29 
Generalhelp me Pin
Member 170156210-Mar-05 23:48
Member 170156210-Mar-05 23:48 
GeneralRe: help me Pin
Dave Kreskowiak11-Mar-05 5:01
mveDave Kreskowiak11-Mar-05 5:01 
GeneralRe: help me Pin
Dave Kreskowiak13-Mar-05 1:17
mveDave Kreskowiak13-Mar-05 1:17 
GeneralScrollable DataGrid Pin
IamADotNetGuy10-Mar-05 21:34
IamADotNetGuy10-Mar-05 21:34 
GeneralVS 2005 Question Pin
realmontanakid10-Mar-05 21:18
realmontanakid10-Mar-05 21:18 
GeneralRe: VS 2005 Question Pin
Judah Gabriel Himango11-Mar-05 7:17
sponsorJudah Gabriel Himango11-Mar-05 7:17 
GeneralHTML Content-type Pin
DougW4810-Mar-05 20:28
DougW4810-Mar-05 20:28 
GeneralLoop spawning several processes question... Pin
new_phoenix10-Mar-05 15:28
new_phoenix10-Mar-05 15:28 
GeneralReflection and overriding Pin
ACorbs10-Mar-05 15:20
ACorbs10-Mar-05 15:20 
GeneralRe: Reflection and overriding Pin
leppie10-Mar-05 15:46
leppie10-Mar-05 15:46 

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.