[Gtk-sharp-list] Invoke method

Raśl Moratalla raul.moratalla@ono.com
Tue, 10 Aug 2004 23:33:33 +0000


Hi again, I'm doing the gtk# version of a windows.form program written 
in .NET. This program uses the Invoke method: this.Invoke (parameters).
As I am a newbie programmer in .NET and MONO I don't know hot to do this 
in MONO. I think that I should use 
System.ComponentModel.ISynchronizeInvoke.Invoke but I don't know how to 
do it.
I do something like this:
ISynchronizeInvoke.Invoke(new SearchEvent(m_OnNewSearched),new object[] 
{file,searchID});

Bu I get the following error:
An object reference is required for the non-static field `Invoke'(CS0120)

Any kind of help would be very appreciated. Does anyone knows about any 
application that uses it?

Best regards,

Raśl