Leadtools TWAIN (Leadtools.Twain assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
GetDeviceEvent Event
See Also 
Leadtools.Twain Namespace > TwainSession Class : GetDeviceEvent Event



Occurs for for each device event received from the TWAIN source to the application

Syntax

Visual Basic (Declaration) 
Public Event GetDeviceEvent As EventHandler(Of EventArgs)
Visual Basic (Usage)Copy Code
Dim instance As TwainSession
Dim handler As EventHandler(Of EventArgs)
 
AddHandler instance.GetDeviceEvent, handler
C# 
public event EventHandler<EventArgs> GetDeviceEvent
C++/CLI 
public:
event EventHandler<EventArgs^>^ GetDeviceEvent

Example

Refer to TwainSession.GetDeviceEventData example.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Reference

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