[Gtk-sharp-list] Update Gtk.Entry from another thread

Daniel Hughes trampster at gmail.com
Wed Nov 20 07:00:40 UTC 2013


Gtk.Application.Invoke((_,__) =>
{
    entry.Text = "New text";
});

On Sat, Nov 16, 2013 at 1:51 PM, fabiocberg <fabiocberg at gmail.com> wrote:
> Hi All,
>
> I know that it should be simple, but I'm having problems to do this.
>
> All I found on the internet, is to use this:
> MethodInvoker action = delegate {
>         entry.Text = "New text";
> };
> entry.Invoke(action);
>
> But, in the "entry" object there is no such "Invoke" method.
>
> So, how can I update the UI from another thread?
>
> Thanks!
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Update-Gtk-Entry-from-another-thread-tp4661323.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list


More information about the Gtk-sharp-list mailing list