Пример #1
0
        private void View_Table_MouseDown(object sender, MouseEventArgs e)
        {
            string           s      = "";
            TableLayoutPanel parent = (TableLayoutPanel)((View_Table)sender).Parent;

            parent.DoDragDrop(sender, DragDropEffects.Move);
        }
Пример #2
0
        private void PictMenuMouseDown(object sender, MouseEventArgs e)
        {
            //  Dim pbt As PictureBox

            TableLayoutPanel typ = default(TableLayoutPanel);


            typ = (TableLayoutPanel)sender;
            //   Dim lb As Label
            //pbt = CType(sender, PictureBox)
            //  lb = CType(sender, Label)
            // lb.Text = pbt.Tag.ToString()
            //    Dim idid As String = lb.Text
            typ.DoDragDrop(typ, DragDropEffects.All);
            //  pbt.DoDragDrop(pbt, DragDropEffects.Copy)
            //     lb.DoDragDrop(pbt.Tag, DragDropEffects.Copy)
            //   End If
        }