Click or drag to resize
ChooserChoose Method (String)
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.3.0.2839)
Syntax
public string Choose(
	string DriverProgID
)

Parameters

DriverProgID
Type: SystemString
Driver to preselect in the chooser dialogue

Return Value

Type: String
Driver ID of chosen driver
Exceptions
ExceptionCondition
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.
Remarks
The supplied driver will be pre-selected in the Chooser's list when the chooser window is first opened.
See Also