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

.NET (Core and Framework)

 
JokeRe: CIL - parsing the call instruction Pin
Pete O'Hanlon23-Sep-07 9:22
mvePete O'Hanlon23-Sep-07 9:22 
JokeRe: CIL - parsing the call instruction Pin
Paul Conrad23-Sep-07 9:47
professionalPaul Conrad23-Sep-07 9:47 
QuestionCOM type communication between .NET apps? Pin
JoeRip21-Sep-07 16:28
JoeRip21-Sep-07 16:28 
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 
I have a class that i want to be able to use in a asp.net app or a win app. I want this class to be thread safe. I have the following code in my event method

public void OnTransactionStarted(object sender, TransactionStartedEventArgs e)
{
ISynchronizeInvoke sync = this as ISynchronizeInvoke;

if (sync.InvokeRequired)
{
TransactionStartedEventHandler tmp = new TransactionStartedEventHandler(OnTransactionStarted);
object[] args ={ sender, e };
sync.Invoke(tmp, args);
return;
}
if (TransactionStarted != null)
TransactionStarted(sender, e);
}

I cannot get the ISyncorizeInvoke object from my class. I tried making this class a component and i still was not able to make this work. The only way i can make this code work is by implement the "WebControl" or "Control" object. I do not want to make this specific for an asp.net app or a win app.

I tried to inherit the ISyncronizeInvoke interface but i did not know what to do from there. I want to make this class as simple and elegent as possible.

Any suggesions? Thanks in advance!
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 
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 

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.