Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drag and drop from listbox to treeview

Status
Not open for further replies.

cityboy3

Programmer
Nov 6, 2002
41
US
Hello all,
Can anyone tell me how to drag and drop a selection from a list box onto a Tree View control?

I'm using Access 2002 with the Microsoft TreeView OLE control. The application is for seating guests at a wedding. The List box contains all guests that have not yet been placed at a table. The TreeView contains a node for each table and child nodes for all guests already at that table. I'd like to let the users drag a guest name from the list box onto a table node in the tree. So far, the TreeView control works great and I have no problem dragging and dropping guests with the Tree from one table to another. I'm just stuck on the List Box part of this.

thanks in advance
 
Are you wanting to do this in code, sort of like the way Access wizrards are set up allowing the user to select from available fields to the fields used in a given form or such?? like this??

Available Use in the form:
cat | -> | dog
mouse | |
squirrel | <- |


That's supposed to basically be 2 list boxes with 2 buttons in the middle.. [wink]

Stephen [infinity]
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV
 
yes, but instead of the 2 listboxes, I'd like to drag from a listbox to a TreeView. thanks
 
Well, I would think there would be an easier way - I've not tried it myself. I did find a couple articles from Microsoft Knowledge Base.. check them out here:

Microsoft Knowledge Base Article - 233274, ACC2000: How to Simulate Drag-And-Drop Capabilities


and

Microsoft Knowledge Base Article - 287642, How to simulate drag-and-drop capabilities in Access 2002

That might work, not sure, but worth a try..

Stephen [infinity]
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV
 
I glanced over the articles, and decided to print one of them out. It seems to be something that would not be TERRIBLY difficult, but would have some difficulty.

Stephen [infinity]
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top