>hi all
>
>how do i drag image and automaticlly drag form in vfp...
>any idea ?
If you mean that when you drag the image in the form, the form moves with it, as if using the title bar then:
Look at the DragDrop, DragOver, MouseMove, MouseDown events and methods in Help.
You can read the X and Y co-ords of the image as it moves and translate these to the form's Top and Left properties.
Having said this, I've never doen that myself but that's where I'd start to look.
I don't know what version of VFP you have but there is an moverlist class somewhere, such as:
c:\program files\microsoft visual foxpro 7\samples\classes\samples.vcx
This has an example of dragging and dropping items in a list that you may be able to adapt to your purpose.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.