ChooserChoose(String) Method

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

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public string Choose(
	string DriverProgID
)

Parameters

DriverProgID  String
Driver to preselect in the chooser dialogue

Return Value

String
Driver ID of chosen driver

Remarks

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

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