Hello guys!
I does not understand what is happening with my code .. If i put MessageBox out of AcquireCompleted event it work's!
I'm doing something like this:
class Scanner{
Thank's everybody!
Peter.
I does not understand what is happening with my code .. If i put MessageBox out of AcquireCompleted event it work's!
I'm doing something like this:
class Scanner{
public Scanner(){
_twain.AcquireCompleted += new EventHandler(complete);
}
private void complete(object sender, EventArgs e){
if (
MessageBox.Show(
"Successful!", "Information",
MessageBoxButtons.OK,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1) == DialogResult.OK);
}
}Thank's everybody!
Peter.