I'm working on a fingerprint and I need to make this operation and I get an error, and don't know how to fix it 

```
 private void doVerify(object sender, DoWorkEventArgs args)
    {

        VerificationResult verificationResult = new VerificationResult();

        for (int i = 0; i < lbDatabase.Items.Count || verificationResult.score > 0; i++)
        {

            lbDatabase.Invoke(new MethodInvoker(delegate { lbDatabase.SelectedItem = i; }));    
            verificationResult.score = _engine.Verify(((CData)lbDatabase.SelectedItem).EngineUser, 20000, out verificationResult.engineStatus);

        }
            args.Result = verificationResult;
    }

```

> 
> Error: Cross-thread operation not valid: Control 'lbDatabase' accessed
>  from a thread other than the thread it was created on
> 
> 
>