private void btnAbortCapturing_Click(object sender, EventArgs e) { UFScanner Scanner; UFS_STATUS ufs_res; if (!GetGetCurrentScanner(out Scanner)) { return; } ufs_res = Scanner.AbortCapturing(); if (ufs_res == UFS_STATUS.OK) { tbxMessage.AppendText("UFScanner AbortCapturing: OK\r\n"); } else { UFScanner.GetErrorString(ufs_res, out m_strError); tbxMessage.AppendText("UFScanner AbortCapturing: " + m_strError + "\r\n"); } }