Background Worker - Pass Parameter(s) to DoWork() Method

G

Guest

I'm trying to print documents in the background. All of my print functions,
however, accept parameters. I notice, though, that when I try to add a
DoWork() handler, I cannot assign a method that accepts parameters.

AddHandler worker.DoWork, New DoWorkEventHandler(AddressOf myMethod(value1,
value2))

Is there a way around this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top