anu
02-12-2003, 02:03 PM
Hi,
I am trying to do an application in vb.net, wherein there a button on the
form, clicking which should create pictureboxes on the fly. And those picture
boxes should be drag and droppable anywhere on the form.
I have written a class, with a function to create pictureboxes on the fly,
and have addhandlers specify the subroutines for drag and drop in the addpicturebox
method. This class is used by a form and that form has a button and clicking
that button would call the function in the class to create the picturebox
Problem is :
to handle drag drop I need pictrebox_mousedown event
form_dragenter
form_dragover
They are 3 diff subroutines, I don't know how can I address picturebox in
form_dragenter and dragover events as in those subroutines sender object
is form itself not the picturebox.
I am trying to do an application in vb.net, wherein there a button on the
form, clicking which should create pictureboxes on the fly. And those picture
boxes should be drag and droppable anywhere on the form.
I have written a class, with a function to create pictureboxes on the fly,
and have addhandlers specify the subroutines for drag and drop in the addpicturebox
method. This class is used by a form and that form has a button and clicking
that button would call the function in the class to create the picturebox
Problem is :
to handle drag drop I need pictrebox_mousedown event
form_dragenter
form_dragover
They are 3 diff subroutines, I don't know how can I address picturebox in
form_dragenter and dragover events as in those subroutines sender object
is form itself not the picturebox.