Drag Drop with Keyborad key status

2 posts, 0 answers
  1. Rajesh
    Rajesh avatar
    25 posts
    Member since:
    Dec 2007

    Posted 04 Dec 2009 Link to this post

    Hi

    I am using Drag-Drop manager to drag object from one control to another control.
    According to the target indentified I am displaying messages with DragCue.

    Here my requirement is when drop is not possible I am displaying message "Drop operation not possible". Additionaly I want to display detail message why the operation is not possible to the use get detail error. The diplay of additional message is required only when specific key ( Control, Alt or shift ) is pressed when user is moving the mouse.

    How one can get the status of keys when drag-drop events (DropQuery and Drop ) gets fired ?

    -Rajesh
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 04 Dec 2009 Link to this post

    Hi Rajesh,

    Please check this article:
    http://msdn.microsoft.com/en-us/library/system.windows.input.keyboard.modifiers.aspx

    You can check which are the active ModifierKeys at any time.

    Best wishes,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
Back to Top