-
SETUP:
In one class I have a Frame-Object called RaumHandle that handles DragDrop-Events.
Code:
Private Sub RaumHandle_DragDrop(Source As Control, X As Single, Y As Single)
Source.DragIcon = RaumHandle.DragIcon
If EintrittErlaubt Then
Spielfeld.Spiel.PositionAendern Source, Nr
End If
End Sub
And I have a PictureBox-Object called Portraet in a second class. I can drag these PictureBox-Objects into the Frame-Objects
Code:
Private Sub Portraet_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Portraet.Container.Tag > 100 Then Portraet.Drag 1
End Sub
PROBLEM:
Now my Portraet blocks the RaumHandle and gets the DragDrop-Events when I try to Drag another Instance on RaumHandle.
ANSWER:
How can I ignore an Event - in this case DragDrop - for an Object? Or handle the Event to the Container-Object (RaumHandle is Container for Portraet)
Thanx for your help,
bjoern
[Edited by bulleye on 11-16-2000 at 06:52 PM]
-
I believe their must be a way to pass an event to an other object in Visual Basic.
But I have searched very hard in my Documentation, at msdn and in this forum. But perhaps I am looking for the wrong keywords.
Please help.