Hi folks,
I've got a prob in using a toolstripbutton as a target of a d&d-operation. I
set AllowDrop=true in the formload event, an handle the dragenter event like
this one:
Private Sub Dragenters(ByVa l sender As Object, ByVal e As
System.Windows. Forms.DragEvent Args)
If e.Data.GetDataP resent(DataForm ats.Text) Then
e.Effect = DragDropEffects .All
Else
e.Effect = DragDropEffects .None
End If
End Sub
This handles several controls-dragenter event and it is fired as expected.
But unlike every other control the toolstripbutton s don't react correctly:
the cursor doesnt change, nor does the dragdrop event occur. A nearby
toolstriptextbo x works and when the drag-path leads through it, the
dragdrop-event of the buttons is fired! So it seems as if the
e.effect-setting isn't received by the d&d-op itself, when set by
toolstripbutton s-dragenter event.
So, is there any chance to drop data on toolstripbutton s, without having to
enter a nearby control first?
Thanx for any help or hint
Volker
I've got a prob in using a toolstripbutton as a target of a d&d-operation. I
set AllowDrop=true in the formload event, an handle the dragenter event like
this one:
Private Sub Dragenters(ByVa l sender As Object, ByVal e As
System.Windows. Forms.DragEvent Args)
If e.Data.GetDataP resent(DataForm ats.Text) Then
e.Effect = DragDropEffects .All
Else
e.Effect = DragDropEffects .None
End If
End Sub
This handles several controls-dragenter event and it is fired as expected.
But unlike every other control the toolstripbutton s don't react correctly:
the cursor doesnt change, nor does the dragdrop event occur. A nearby
toolstriptextbo x works and when the drag-path leads through it, the
dragdrop-event of the buttons is fired! So it seems as if the
e.effect-setting isn't received by the d&d-op itself, when set by
toolstripbutton s-dragenter event.
So, is there any chance to drop data on toolstripbutton s, without having to
enter a nearby control first?
Thanx for any help or hint
Volker