Is there a way to drag the contents of a control on a form to another
control?
IE. drag contents of a textbox to another textbox.
My specific need is to drag the contents of a cursor cell to a cell in
another cursor.

I have gotten it to work using a right click to copy and then paste but
would like it to be a little more elegant.

Jim

RE: VFP 9 Local Drag and Drop by Leemi

Leemi
Wed Aug 09 16:01:56 CDT 2006

Hi Jim:

Look at the two drag and drop examples in the Solution.app file that ships
with VFP 9.0. Also, these articles might be useful:

137435 How To Drag and Drop from a Grid to a Text Box
http://support.microsoft.com/default.aspx?scid=kb;EN-US;137435
139626 How To Drag and Drop Between Two Containers
http://support.microsoft.com/default.aspx?scid=kb;EN-US;139626

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>Is there a way to drag the contents of a control on a form to another
>control?
>IE. drag contents of a textbox to another textbox.
>My specific need is to drag the contents of a cursor cell to a cell in
>another cursor.

>I have gotten it to work using a right click to copy and then paste but
>would like it to be a little more elegant.

>Jim



Re: VFP 9 Local Drag and Drop by Jim

Jim
Thu Aug 10 07:49:00 CDT 2006

Thanks Lee,
The dragcopy from grid to textbox worked great. Also works great for
textbox to textbox.
Now I need to drag from cell in one grid to cell in another grid. The
code for the above doesn't work for that.
Am I missing something? Does that need a different methodology?

Jim