soukoku / ntwain

A TWAIN lib for dotnet.
MIT License
117 stars 47 forks source link

[Question] Is there an event at the point of closing scanner UI without scanning? #57

Open OilPrince opened 4 months ago

OilPrince commented 4 months ago

I have a question about the operation of the scan.

At the start of the scan, the scanner UI is displayed as follows:

_twain.CurrentSource.Enable(SourceEnableMode.ShowUI, true, this.Handle)

Is there a way to check this through the event if I close the scanner UI without proceeding the scan?

If anyone knows, please answer!

soukoku commented 4 months ago

The closest one is the SourceDisabled event on the twain session that happens when the scan action ends.