Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DRAG AND DROP (very urgent)
Message
 
À
24/03/1999 11:38:24
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00201405
Message ID:
00201537
Vues:
9
>>>I have placed a control which doesn't have OLE DragDrop but it has Plain Drag Drop on to a User Control.
>>>
>>>And on another User Control I have a control which supports OLE DragDrop.
>>>
>>>What is the best way to implement Drag Drop functionality from usercontrol1 on form1 to usercontrol2 on form2 ?
>>
>>Did you tried setting OLEDragMode and OLEDropMode to both Automatic.
>
>Yes I tried. Please remember that one control supports OLEDRAG and the other doesn't
>
>Let me explain clearly
>
>Form1 Form2
> | |
> | |
>Usercontrol1 UserControl2
> | |
> | |
>Control1 Control2
> (Supports DragDrop (Supports DragDrop
> doesnot support OLEDragDrop) supports OLEDragDrop)
>
>What I want is, Some method of dragging from Control2 to drop on Control1.
>
>Also vice versa. ie drag from control1 to control2

You will have to initiate the operation manually.

Here is an extract of the vb-help:
When OLEDragMode is set to Manual, you must call the OLEDrag method to start dragging, which then triggers the OLEStartDrag event.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform