private void DragDropEnter(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.Text)) //DataFormats.FileDrop))
            {
                e.Effect = DragDropEffects.All;
            }
            else
            {
                e.Effect = DragDropEffects.None;
            }


            parentForm.Focus();
            parentForm.BringToFront();
            this.Focus();
            this.BringToFront();
        }
Esempio n. 2
0
 private void FrmTaskbarIcon_GotFocus(object sender, EventArgs e)
 {
     parentForm.Focus();
 }