private void cmdAddContactsToVerify_Click(object sender, EventArgs e) { WaitDialog.Show("Loading form..."); PopupDialog _pdlg = new PopupDialog(); AddEmailVerifyContact _moAddContactEmail = new AddEmailVerifyContact(); _moAddContactEmail.btnAddToQueue_OnClick += new AddEmailVerifyContact.btnAddToQueueOnClickEventHandler(_moAddContactEmail_btnAddToQueue_OnClick); _moAddContactEmail.Dock = DockStyle.Fill; _pdlg.FormBorderStyle = FormBorderStyle.FixedSingle; _pdlg.MinimizeBox = false; _pdlg.MaximizeBox = false; _pdlg.StartPosition = FormStartPosition.CenterScreen; _pdlg.Text = "Add Contact Emails for Verification"; _pdlg.Size = new Size(_moAddContactEmail.Width + 2, _moAddContactEmail.Height + 2); _pdlg.Controls.Add(_moAddContactEmail); _pdlg.Show(); WaitDialog.Close(); }