Thanks! Your suggestion solved the problem.
Here are the steps to pass drag-and-drop events to child controls in a
UserControl:
(1) In the UserControl project, set the AllowDrop property of the
UserControl to false.
(2) In the UserControl project, set the AllowDrop property of the child
control to true.
(3) In the client project, the UserControl's property can be set to true or
false; the child control will accept drops with either setting.
"Marcin Grzebski" <mg*******@taxu ssi.no.com.spam .pl> wrote in message
news:ch******** **@atlantis.new s.tpi.pl...
Hi Dave,
I've not much experiences with drag-and-drop but i've
one tip:
- set userControl's "AllowDrop" ("AllowDrag" ) to false.
Regards
Marcin
Is there a simple way to pass drag-and-drop events to a child control in
a UserControl?
Here's an example: I have created a UserControl which contains a treeview
and some text boxes. I want to be able to drag-and-drop to the treeview
from outside the UserControl. Now, when I drag over the treeview in the
UserControl, the UserControl gets the drag-and-drop events, but the
treeview doesn't.
Is there a simple way to pass drag-and-drop events to the treview, or do
I need to write the code to do that myself? Thanks.
Dave Veeneman
Foresight Systems