Results 1 to 5 of 5
  1. #1
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Simulate Drag and Drop (A2k SR1 or 2002)

    I want to create a feature that resembles using "Drag and Drop" to select data.

    Here is a rough plan of events...
    1. A form contains two listboxes of data. Listbox1 on the left will accept data, the Listbox2 on the right is the data to select.
    2. User clicks on the record in listbox two. (Selects Data) (For the on click event, must you release the button for the on click to execute??)
    - The on click event of the listbox launches code that stores the value from Listbox 2
    3. The user, while holding the mouse button goes to Listbox 1 and releases the button. (Will the On Click event fire or could I use a different event) Code them places the value of the selected data into the dataset for Listbox 1 and removes it from the dataset of listbox 2.
    4. Refreshing the screen updates the data in the screen.

    Of course, if a mistake is made, one must be able to move data back.

    Sounds simple enough....

    I have done this in the past using a double click on the data in a Listbox to move data back and forth between listboxes. However, I am too lazy to double click and want to drag and drop.

    Does this make any sense, sound feasible, anyone do this before to save me some work???

    Your ideas and suggestions are greatly appreciated.
    Regards,

    Gary
    (It's been a while!)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Simulate Drag and Drop (A2k SR1 or 2002)

    See ACC2000: How to Simulate Drag-And-Drop Capabilities. This MSKB article provides code and a link to a downloadable sample database.

    You might also take a look at Peter's Software. You can download his Drag-N-Dropper for free; you'll have to register for a fully functioning version.

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Simulate Drag and Drop (A2k SR1 or 2002)

    Hi Gary

    Check out FrmSmp00.mdb for 2 examples

    Q233274 How to simulate Drag and Drop

    HTH

    John

  4. #4
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Simulate Drag and Drop (A2k SR1 or 2002)

    Thanks Hans,

    I am looking at the articles.
    Regards,

    Gary
    (It's been a while!)

  5. #5
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Simulate Drag and Drop (A2k SR1 or 2002)

    Thanks - I downloaded the example and will be looking at it.
    Regards,

    Gary
    (It's been a while!)

Posting Permissions

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