[archived content]

Application.run method

public static void run()
public static void run(void delegate() whileIdle)
public static void run(ApplicationContext appcon)
public static void run(ApplicationContext appcon, void delegate() whileIdle)
public static void run(Form mainForm, void delegate() whileIdle)
public static void run(Form mainForm)

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

Page last modified on May 07, 2007, at 11:46 AM