Hello!
This DragEnter event works fine but I can't get the DragDrop event to occur.
I have one eventhandler method for the DragDrop event and
one eventhandler method for the DragEnter event.
When I drag a file from the DeskTop into the TextBox the DragEnter event is
fired so my DragEnter eventhandler
method is called which works fine.
I have read the docs but I can't understand when the DragDrop event is fired
because my eventhandler for DragDrop event is never called.
//Tony
"Peter Duniho" <(E-Mail Removed)> skrev i meddelandet
news

p.us****(E-Mail Removed)...
> On Mon, 20 Apr 2009 15:23:01 -0700, Tony Johansson
> <(E-Mail Removed)> wrote:
>
>> Hello!
>>
>> If I want to drag a file into a TextBox and the contents of the file is
>> to
>> be displayed in the TextBox which event is most appropriate between
>> DragEnter or DragDrop.
>
> The docs say:
>
> -- DragEnter: "Occurs when an object is dragged into the control's
> bounds."
> -- DragDrop: "Occurs when a drag-and-drop operation is completed."
>
> You should handle both events to provide proper user feedback. Hopefully
> from the documentation it is obvious which one signals your code to
> actually complete the operation.
>
> Pete