Search code examples
c#timergtkmonodevelop

Looking for Timer.Tick or equivalent on MonoDevelop and GTK


Hello there I'm looking for equivalent event for timer.tick from System.Windows.Forms in MS C# to MonoDevelop C# with GTK...

http://msdn.microsoft.com/en-us/library/system.windows.forms.timer.tick.aspx


Solution

  • What you are probably looking for is GLib.Timeout.Add (uint interval, GLib.TimeoutHandler handler)

    The interval is expressed in milliseconds.