Select ASCOM driver to use including pre-selecting one in the dropdown list

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

Syntax

C#
public string Choose(
	string DriverProgID
)
Visual Basic
Public Function Choose ( _
	DriverProgID As String _
) As String
Visual C++
public:
virtual String^ Choose(
	String^ DriverProgID
) sealed

Parameters

DriverProgID
Type: System..::..String
Driver to preselect in the chooser dialogue

Return Value

Driver ID of chosen driver

Implements

IChooser..::..Choose(String)

Remarks

The supplied driver will be pre-selected in the Chooser's list when the chooser window is first opened.

Exceptions

ExceptionCondition
ASCOM.Utilities.Exceptions..::..InvalidValueExceptionThrown if the Chooser.DeviceType property has not been set before Choose is called. It must be set in order for Chooser to know which list of devices to display.

See Also