Gdk.Threads.Init Method
This call must be made before any use of the main loop from Gtk#; to be safe, call it before Gtk.Application.Init(). It must also be preceded by a call to GLib.Thread.Init() if GLib threading has not yet been initialized.

Syntax

public static void Init ()

Remarks

Initializes Gdk so that it can be used from multiple threads in conjunction with Threads.Enter() and Threads.Leave().

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)