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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture while OLE drag/drop???

Status
Not open for further replies.

tenshekels

Programmer
Feb 5, 2004
20
US
Is there any way to set the icon that is displayed on an OLE drag drop?? It does not look like VB6 implemented the "OleDragPicture" property anywhere.
 
Oops, sorry. Missed out how you achieve the same thing in VB.

Basically, you just set the Screen.MousePointer (and if required the Screen.MouseIcon) properties in a source control's OLEGiveFeedback event
 
This sounds good, but I can't get it to work.
When I try it in my app - it appears that the mouse icon switches between what I specify in "Screen.MouseIcon = ..."
and the result mouse image - based on what I specify in setting the AllowedEffects variable during the StartDrag event (either vbDropEffectCopy or vbDropEffectMove).

So - if I set AllowedEffects = vbDropEffectMove - then the cursor switches between the "Move" mouse effect and the mouse icon I specify in "Screen.MouseIcon = ...
 
You might want to set the parent form's OleDragMode to vbAutomatic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top