Leadtools TWAIN (Leadtools.Twain assembly)
LEAD Technologies, Inc

GetDeviceEvent Event






Occurs for for each device event received from the TWAIN source to the application
Syntax
public event EventHandler<EventArgs> GetDeviceEvent
'Declaration
 
Public Event GetDeviceEvent As EventHandler(Of EventArgs)
'Usage
 
Dim instance As TwainSession
Dim handler As EventHandler(Of EventArgs)
 
AddHandler instance.GetDeviceEvent, handler
public event EventHandler<~Remove~> GetDeviceEvent
add_GetDeviceEvent(function(sender, e))
remove_GetDeviceEvent(function(sender, e))

public:
event EventHandler<EventArgs^>^ GetDeviceEvent
Remarks

This event will be fired with each received device event from the TWAIN source to the application, this event will be called while acquiring process.

To get more information for the received event by calling GetDeviceEventData method inside this event. To modify CAP_DEVICEEVENT capability values, call SetDeviceEventCapability method, and to get valid values for this capability, call GetDeviceEventCapability method.

Example
Refer to GetDeviceEventData example.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TwainSession Class
TwainSession Members
EnableGetDeviceEvent Property
GetDeviceEventData Method
SetDeviceEventCapability Method
GetDeviceEventCapability Method
ResetDeviceEventCapability Method
TwainDeviceEvent Class

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.