Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 2.0
 OnDragDrop Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
ParentControlDesigner.OnDragDrop Method

Called when a drag-and-drop object is dropped onto the control designer view.

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in system.design.dll)

Visual Basic (Declaration)
Protected Overrides Sub OnDragDrop ( _
    de As DragEventArgs _
)
Visual Basic (Usage)
Dim de As DragEventArgs

Me.OnDragDrop(de)
C#
protected override void OnDragDrop (
    DragEventArgs de
)
C++
protected:
virtual void OnDragDrop (
    DragEventArgs^ de
) override
J#
protected void OnDragDrop (
    DragEventArgs de
)
JScript
protected override function OnDragDrop (
    de : DragEventArgs
)

Parameters

de

A DragEventArgs that provides data for the event.

This method checks any parent control for a drag-and-drop handler that can handle the operation instead. If one exists, this method passes the DragEventArgs to the method and returns. If no parent drag-and-drop handler exists, this method attempts to create a tool if a toolbox item has been dropped on the designer control.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker