Hi Igor,
it wasn't meant to be classified as a bug, it is more that I'm asking for a change request ;-)
Reason:
when you add iGrid to a form and use the VBA Editor to add an Event for OLEStartDrag, it will insert:
Private Sub iGrid_OLEStartDrag(Data As Object, AllowedEffects As Long)
but if you declare iGrid as a local Variable, e.g.
Private WithEvents c_Grid As iGrid500_10Tec.iGrid
you have to use the signature:
Private Sub c_Grid_OLEStartDrag(Data As VBRUN.DataObject, AllowedEffects As Long)
So I am asking, if it would be possible to change the definition to always using "Data As Object",
so that using DragDrop with your control in MS Office would be easier.
PS: Using a TreeView Control, the definition for OLEStartDrag is:
Private Sub tv_OLEStartDrag(Data As MSComctlLib.DataObject, AllowedEffects As Long)
which would be fine too, as it does not collide with VBA.
Best regards
Klaus