private void OnClosePopup(object sender, EventArgs e) { if (TreeViewBoxPopupForm != null) { InvokeDropUp(e); TreeViewBoxPopupForm.Dispose(); TreeViewBoxPopupForm = null; } }