Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
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()
Managed Extensions for C++ 
public: __event EventHandler<EventArgs>* GetDeviceEvent();
C++/CLI 
public:
event EventHandler<EventArgs>^ GetDeviceEvent();

Example

Refer to 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also