Click here to Skip to main content
15,890,527 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: COM type communication between .NET apps? Pin
Robert Rohde23-Sep-07 3:14
Robert Rohde23-Sep-07 3:14 
GeneralRe: COM type communication between .NET apps? Pin
lmoelleb25-Sep-07 3:47
lmoelleb25-Sep-07 3:47 
QuestionEditing in Datagrid view Pin
prabhathgk21-Sep-07 5:54
prabhathgk21-Sep-07 5:54 
GeneralRe: Editing in Datagrid view Pin
Paul Conrad31-Dec-07 9:25
professionalPaul Conrad31-Dec-07 9:25 
QuestionIsynchronizeinvoke question Pin
Fayu21-Sep-07 5:39
Fayu21-Sep-07 5:39 
AnswerRe: Isynchronizeinvoke question Pin
TJoe27-Sep-07 3:28
TJoe27-Sep-07 3:28 
GeneralRe: Isynchronizeinvoke question Pin
Fayu28-Sep-07 10:20
Fayu28-Sep-07 10:20 
GeneralRe: Isynchronizeinvoke question Pin
TJoe28-Sep-07 10:52
TJoe28-Sep-07 10:52 
Since I don't understand what your class is used for I can't give advice as to the solution. Is this a control that has some UI (e.g. an web control or a win form control)? If not, then you really shouldn't be taking cross-thread errors into consideration. A non-UI class should really just be concerned with making sure it's state is maintained when read or updated by multiple threads.

The only exception I can really think of is if your class fires events. In this case you could follow this article[^]. This offloads the responsibility of invoking UI changes on the UI thread from the consumer of your class. Although, there may be times when no UI changes are required and it would have been better to allow the consumer to decide whether it needs to call Invoke/BeginInvoke. In general for non-UI classes, I don't use this technique.

If you can describe more about your class and how it interacts with the UI, then I can give more specific advice.

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: Isynchronizeinvoke question Pin
Fayu28-Sep-07 11:42
Fayu28-Sep-07 11:42 
GeneralRe: Isynchronizeinvoke question Pin
TJoe28-Sep-07 12:49
TJoe28-Sep-07 12:49 
AnswerRe: Isynchronizeinvoke question Pin
pbraun7-Oct-07 7:19
pbraun7-Oct-07 7:19 
QuestionMenu Items Pin
Ekwy21-Sep-07 1:03
Ekwy21-Sep-07 1:03 
AnswerRe: Menu Items Pin
Luc Pattyn21-Sep-07 6:32
sitebuilderLuc Pattyn21-Sep-07 6:32 
QuestionTo remove all assemblies from GAC and Native cache of a particular public key Pin
Mushtaque Nizamani20-Sep-07 18:04
Mushtaque Nizamani20-Sep-07 18:04 
AnswerRe: To remove all assemblies from GAC and Native cache of a particular public key Pin
Pete O'Hanlon21-Sep-07 2:48
mvePete O'Hanlon21-Sep-07 2:48 
Questionwhat are the best c#.net components for processing OCR and digital cameras? Pin
md.naseri20-Sep-07 7:31
md.naseri20-Sep-07 7:31 
GeneralRe: what are the best c#.net components for processing OCR and digital cameras? Pin
Paul Conrad31-Dec-07 9:25
professionalPaul Conrad31-Dec-07 9:25 
QuestionMC# programming language for multi-threaded programming Pin
YuryS200720-Sep-07 2:27
YuryS200720-Sep-07 2:27 
AnswerRe: MC# programming language for multi-threaded programming Pin
Colin Angus Mackay20-Sep-07 3:54
Colin Angus Mackay20-Sep-07 3:54 
AnswerRe: MC# programming language for multi-threaded programming Pin
Dave Kreskowiak20-Sep-07 6:46
mveDave Kreskowiak20-Sep-07 6:46 
AnswerRe: MC# programming language for multi-threaded programming [modified] Pin
Pete O'Hanlon20-Sep-07 10:26
mvePete O'Hanlon20-Sep-07 10:26 
GeneralRe: MC# programming language for multi-threaded programming Pin
Scott Dorman20-Sep-07 10:39
professionalScott Dorman20-Sep-07 10:39 
GeneralRe: MC# programming language for multi-threaded programming Pin
Pete O'Hanlon20-Sep-07 10:55
mvePete O'Hanlon20-Sep-07 10:55 
GeneralRe: MC# programming language for multi-threaded programming Pin
Scott Dorman20-Sep-07 11:05
professionalScott Dorman20-Sep-07 11:05 
GeneralRe: MC# programming language for multi-threaded programming Pin
Pete O'Hanlon20-Sep-07 11:10
mvePete O'Hanlon20-Sep-07 11:10 

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.