OpenNETCF Smart Device Framework 2.3
Begins running a standard application message loop on the current thread, and makes the specified form visible.

Namespace:  OpenNETCF.Windows.Forms
Assembly:  OpenNETCF.Windows.Forms (in OpenNETCF.Windows.Forms.dll) Version: 2.3.0.0

Syntax

C#
public static void Run(
	Form mainForm,
	bool runAsSingletonApp,
	bool displayMainForm
)
Visual Basic (Declaration)
Public Shared Sub Run ( _
	mainForm As Form, _
	runAsSingletonApp As Boolean, _
	displayMainForm As Boolean _
)
Visual Basic (Usage)
Dim mainForm As Form
Dim runAsSingletonApp As Boolean
Dim displayMainForm As Boolean

Application2.Run(mainForm, runAsSingletonApp, _
	displayMainForm)
Visual C++
public:
static void Run(
	Form^ mainForm, 
	bool runAsSingletonApp, 
	bool displayMainForm
)
J#
public static void Run(
	Form mainForm,
	boolean runAsSingletonApp,
	boolean displayMainForm
)
JScript
public static function Run(
	mainForm : Form, 
	runAsSingletonApp : boolean, 
	displayMainForm : boolean
)
JavaScript
OpenNETCF.Windows.Forms.Application2.Run = function(mainForm, runAsSingletonApp, displayMainForm);

Parameters

mainForm
Type: System.Windows.Forms..::.Form
Form on which main message loop runs
runAsSingletonApp
Type: System..::.Boolean
When true, if an existing instance of the app is already running, the current application instance will simply exit and the already running app will come to the fore
displayMainForm
Type: System..::.Boolean
When set to true, the main form will be automatically displayed, else the app will be responsible for showing the Form

See Also