Runs the application by entering the Windows message loop.
The Form specified will be created automatically. run automatically returns when the specified Form is closed, or when the ApplicationContext's mainForm is closed.
whileIdle is called repeatedly while there are no window messages in the queue.
Application.idle events are suppressed if whileIdle is used; however, the whileIdle handler may manually fire the Application.idle event.
See also: ApplicationContext