PC Review


Reply
Thread Tools Rate Thread

DragIcon in VBA?

 
 
Bart
Guest
Posts: n/a
 
      31st May 2007
Dear All,

Does somebody know more about the DragIcon in VBA? I found out this
property doesn't exist in VBA. Is there a substitute? I would like to
choose the icon for the cursor while dragging.

Bart

 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      31st May 2007
Hi Bart,

I think that manipulation of the cursor is rather limited
in Excel.

See VBA Help for the application's Cursor property
and see the example code.


---
Regards,
Norman



"Bart" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear All,
>
> Does somebody know more about the DragIcon in VBA? I found out this
> property doesn't exist in VBA. Is there a substitute? I would like to
> choose the icon for the cursor while dragging.
>
> Bart
>



 
Reply With Quote
 
Bart
Guest
Posts: n/a
 
      31st May 2007
Thank you Norman Jones,

I only forgot to tell you the following.
On a UserForm I want to drag and drop a Tab of a TabStrip. I want this
so the user can change the order of the tabs. So far so good:
everything works fine. The 'DragIcon' is related to the set property
Effect. You can give an argument when using the method

fmDropEffect=Object.StartDrag([Effect as fmDropEffect])

But I would like to change the mouse pointer into a Custom Cursor Icon
when dragging a Tab. Is this possible? Tried several things. E.g. set
the property MouseIcon in the property window and in the sub
TabStrip1_BeforeDropOrPaste changing the MousePointer property into
fmMousePointerCustom. But now there's just the default cursor
(flickering a bit) while dragging. Only after dropping you see the
chosen MouseIcon.

Private Sub UserForm_BeforeDragOver(ByVal Cancel As
MSForms.ReturnBoolean, ByVal Control As MSForms.Control, ByVal Data As
MSForms.DataObject, ByVal X As Single, ByVal Y As Single, ByVal State
As MSForms.fmDragState, ByVal Effect As MSForms.ReturnEffect, ByVal
Shift As Integer)

Cancel = True
Me.MousePointer = fmMousePointerCustom

End Sub

Bart

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TreeView DragIcon Ghost Node Preview rimblock Microsoft C# .NET 0 1st Feb 2008 12:41 PM
change DragIcon of MSFlexgrid using vb.net merikhoz Windows XP 0 12th Jul 2006 07:57 AM
treeview.dragicon in vb.net =?Utf-8?B?TWFuaXNoIEphaW4=?= Microsoft Dot NET Framework Forms 0 3rd May 2004 07:56 AM
DragIcon property =?Utf-8?B?dE1hbg==?= Microsoft VB .NET 0 28th Jan 2004 07:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:08 PM.