The Choose() method returns the DriverID of the selected driver. Choose() allows you to optionally pass the DriverID of a "current" driver (you probably save this in the registry), and the corresponding telescope type is pre-selected in the Chooser's list. In this case, the OK button starts out enabled (lit-up); the assumption is that the pre-selected driver has already been configured.

Namespace: ASCOM.DriverAccess
Assembly: ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public static string Choose(
	string telescopeId
)
Visual Basic
Public Shared Function Choose ( _
	telescopeId As String _
) As String
Visual C++
public:
static String^ Choose(
	String^ telescopeId
)

Parameters

telescopeId
Type: System..::..String
Optional DriverID of the previously selected telescope that is to be the pre-selected telescope in the list.

Return Value

The DriverID of the user selected telescope. Null if the dialog is canceled.

See Also