VintaSoft Twain .NET SDK v10.2
Vintasoft.WpfTwain Namespace / DeviceManager Class / ShowDefaultDeviceSelectionDialog Method




In This Topic
    ShowDefaultDeviceSelectionDialog Method (DeviceManager)
    In This Topic
    Displays the default device selection dialog so the user can change the default device.
    Syntax
    'Declaration
     
    Public Function ShowDefaultDeviceSelectionDialog() As Boolean
    'Usage
     
    Dim instance As DeviceManager
    Dim value As Boolean
     
    value = instance.ShowDefaultDeviceSelectionDialog()
    public bool ShowDefaultDeviceSelectionDialog()
    public: bool ShowDefaultDeviceSelectionDialog(); 
    public:
    bool ShowDefaultDeviceSelectionDialog(); 

    Return Value

    true - if the user has pressed the "Ok" button,
    false - if an error occured or if the user has pressed the "Cancel" button.
    Exceptions
    ExceptionDescription
    Thrown if device manager is not open.
    Thrown if object is disposed.
    Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
    Example
    Please see example here.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also