HOW TO?? Drag - Drop - Rearrange

svenhoek
04-11-2003, 07:27 PM
I currently have designed a program where the user enters data into text boxes on multiple forms. I then want to have a form where all the entered data appears, initially organized in the same order as it was entered, something like this... (each line being a different textbox)

Learn to play the piano
Get a new job
Visit the Grand Canyon
Ask for a raise
Find a new apartment
Get a cat

and for them to then be able to drag & drop each line and have the list automatically rearrange to fit it. As well as being able to put items indented under other items in an Outline style. AND if possible, be able to add a whole new line. So that it could end up looking like this...

Get a new job
.....Ask for a raise
Visit the Grand Canyon
Find a new apartment
.....Get a cat
.....Buy a sofa
Learn to play the piano

How on earth do I do this?

THANKS!!!

Machaira
04-12-2003, 08:50 AM
Take a look at the TreeView control.

svenhoek
04-12-2003, 06:27 PM
Interesting, but how can I get it so that the user can rearrange the items in run time?

Machaira
04-12-2003, 07:09 PM
You simple add and delete nodes as needed. Try one of these links:

http://www.google.com/search?sourceid=navclient&q=visual+basic+treeview+tutorial

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum