private void zapocniDnD(Button btn) { label1.Text = "Zapoceo drag and drop"; zapoceoDnD = btn; btn.DoDragDrop(btn.BackColor, DragDropEffects.Move); if (uspjesnoZavrsio == true) { zapoceoDnD = null; uspjesnoZavrsio = false; btn.BackColor = SystemColors.Control; label1.Text = ""; } }
private void btnAttr_MouseDown(object sender, MouseEventArgs e) { btnDropFrom = (Button) sender; //Keep track of where the drag data came from btnDropFrom.DoDragDrop(btnDropFrom.Text, DragDropEffects.Copy | DragDropEffects.Move); }
private void buttonEdit_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { buttonEdit.DoDragDrop("MovedEditor", DragDropEffects.All); }