Drag&Drop: How to hand over object reference ?

  • Thread starter =?iso-8859-1?Q?Jan_Weing=E4rtner?=
  • Start date
?

=?iso-8859-1?Q?Jan_Weing=E4rtner?=

Hi.

I'm trying to move a picure box from the form into a
group box an i would like to use the standard drag&drop
functions (AllowDrop=true, MouseDown, DragEnter, DragDrop ...).

The data seems to be saved as an IDataObject.
My question is:
Is it possible to hand over the _object reference_ of the
picture box via the IDataObject interface?

thanks and best regards,
Jan
 
?

=?iso-8859-1?Q?Jan_Weing=E4rtner?=

.... maybe a little bit more exactly:
Is it possible to hand over the _object reference_ ...

.... only by using the event handler arguments:

private void groupBox1_DragDrop(object sender,
System.Windows.Forms.DragEventArgs e)
{
PictureBox pBox = ???
}

thanks and best regards,
Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top