Exception:- Cross-thread operation not valid: Control 'treeView' accessed from a thread other than the thread it was created on. I have kept treeview, You can replace it with control of your choice Solution if (treeView.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { ...