I have Add button click event how add file:
Add button click event
private void btnAddfiles_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == Sys
To prevent UI freezing, you can do this:
while (BackgroundWorker.IsBusy()) { Application.DoEvents(); }
I go this from the msdn docs, here