I had the same problem. As the last row of the Load event, I inserted the following statement which prevents the form from closing: DialogResult = DialogResult.None