Device.Setup

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
malovern
Posts: 4
Joined: Tue Aug 06, 2013 6:14 pm

Device.Setup

Post by malovern »

Hi,

I am trying to determine when the user closes the devices setup dialog. This is for a canon dr 6010c scanner. I have subscribed to the Device_StateChanged event but the only events that occurring are the enabled and open states when the setup dialog is first loaded.

Is there a way of detecting when the user closes the device setup dialog box as the call to Device.Setup returns immediately. I note from a previous thread that you suggest the Device_StateChanged event but this event does not get fired when the dialog closes so I cannot determine if the user has closed the dialog and thus close the device.

The reason I need this is to allow the user to set options for the selected scanner in the options of my program.

Thanks

Jim
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: Device.Setup

Post by Alex »

Hello Jim,

Device state is changed from Open to Enabled when you opening the device setup dialog.
Device state is changed from Enabled to Open when you closing the device setup dialog.

Could you send me information about changes in device state when you open/close the device?

Best regards, Alexander
Post Reply