Results 1 to 2 of 2

Thread: Drag and drop problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Posts
    5

    Drag and drop problem

    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.

  2. #2
    New Member
    Join Date
    Feb 2003
    Location
    Surrey, British Columbia, Canada
    Posts
    4

    Post

    here is an app I built a while ago that alows you to move a picture box around in a panel.

    You should be able to morph it to work for you
    Attached Files Attached Files
    ~~~~~~~~~~~~~~~~~~~~
    PeAcE
    DrDave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width