AcquisitionDeviceEvent Event |
Namespace: Atalasoft.Twain
private void acquisition_DeviceEvent(object sender, Atalasoft.Twain.DeviceEventArgs e) { // One of the many device events has fired. // You will only receive the events you have set using // the Device.DeviceEvents property. if (e.Event == DeviceEventFlags.PaperJam) MessageBox.Show(this, "Paper jam!!!"); else MessageBox.Show(this, "Device Event: " + e.Event.ToString()); }
Private Sub acquisition_DeviceEvent(ByVal sender As Object, ByVal e As Atalasoft.Twain.DeviceEventArgs) ' One of the many device events has fired. ' You will only receive the events you have set using ' the Device.DeviceEvents property. If e.Event = DeviceEventFlags.PaperJam Then MessageBox.Show(Me, "Paper jam!!!") Else MessageBox.Show(Me, "Device Event: " + e.Event.ToString()) End If End Sub