[Mono-devel-list] Use of BeginInvoke
iain at mccoy.id.au
Mon Aug 16 03:42:47 EDT 2004
That method is the windows forms way of getting code to run on the UI
thread. Gtk# does not use it. For Gtk#, you want the Glib.Idle.Add()
method. You just pass a delegate to that method, and gtk will call that
delegate on the main thread.
On Thu, 2004-08-12 at 23:41, Raúl Moratalla 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
> 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? The best example for learning is source code.
> Best regards,
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
Iain McCoy <iain at mccoy.id.au>
More information about the Mono-devel-list