There is Application.Idle event in .NET that should do the same thing as OnIdle in Delphi.