The Windows GUI Main Loop In C#... where is it?

.net, c#

Solution

It's inside the `Application.Run` method. You shouldn't call `GetMessage` API function directly:

// MyForm is derived from `System.Windows.Forms.Form` class
Application.Run(new MyForm()); 

Problem

I have a Windows Form app in C# and am trying to figure out where I would implement the CLI app equivalent of the primary while loop in main(). I am using Visual C#'s gui designer. EDIT: Problem solved with an instance of Timer.

Original source