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 bkrike 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 modal form to form that opened it modally 1

Status
Not open for further replies.

wrockleberry

Programmer
Feb 5, 2004
7
US
If have a string grid on two forms. I open the second form modal to display detail lines from the source grid. I want to allow the user to select lines from the grid on the modal form, and move them to the grid on the original form. How do I handle the modal aspects of the second form to be able to allow the user to point to the grid line on the first string grid so I know where to move the items. Somehow, I think I need to close the modal form to enable the selected property on the string grid in the first form, but that spoils the user interface of dragging from one grid to the other. And wouldn't keep the display of those items not moved on the screen for the user.

Any ideas would be appreciated.
Thanks
 
Idea 1. Make the first form modal. From that form show (not modal) the second form. At that point the application will be modal to both forms.

Idea 2. When you create the second form change the parent of the first grid to the second form. Both grids will then show on the second form (note the actual grids, not a copy of the first grid). You can D & D between them to your heart's content. Remember to put the first grid parent back to the first form before freeing the second form.

Have fun
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top