I am writing a small forms based application to connect to an LDAP server, and I wanted the \"connect\" button to work in the background. So I was following the information and
You are never wiring up the event.
public Form1() { InitializeComponent(); worker.DoWork += new DoWorkEventHandler(worker_DoWork); }