You cannot use the Form.ShowDialog() method to show the data connection dialog. Use DataConnectionDialog.Show() instead. ...