[Mono-devel-list] Use of BeginInvoke
gennady wexler
adyler at winisp.net
Sun Aug 15 13:30:09 EDT 2004
not sure if anyone answered this.
you cant create an instance of an interface object. you need to create an
object that implements this interface and then call your method on the newly
created object.
this is basic rule to c# programming. you will probably find examples of how
to program with interface in c# in any available c# books.
let me know if you have any specific questions.
On 8/12/04 6:41 AM, "Raúl Moratalla" <raul.moratalla at ono.com> wrote:
> Hi everybody. I don't know if this is the correct list for post this.
> 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)
>
More information about the Mono-devel-list
mailing list