You need to import System.ComponentModel for using background worker
Imports System.ComponentModel
Then Declare a private variable
Private bgWorker As New BackgroundWorker
You need to create two methods for background worker's DoWork and RunWorkerCompleted events and assign them.
Private Su...