Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Drag and drop

Drag and drop

Scheduled Pinned Locked Moved C#
debugginghelpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    topcatalpha
    wrote on last edited by
    #1

    Hi, can someone help me out ? I have a line of code in the cellClick of a datagridview. System.Diagnostics.Trace.WriteLine("Cell Click before"); _this.DoDragDrop(DgLevels.Rows[e.RowIndex].Cells[DbCnst.Lev_ID].Value.ToString(), DragDropEffects.Move)_ System.Diagnostics.Trace.WriteLine("Cell Click after"); But when clicking one time on the cell, "Click before" appears in the output window, but it takes almost a second before "click after" appears. it also doesn't work like it should be. seems like it switches the drag and drop. click (drag) click second time and nothing happens, even when event is fired. looks like there is a timeout for the drag and drop. do i need to cancel it ? thx Kurt

    T 1 Reply Last reply
    0
    • T topcatalpha

      Hi, can someone help me out ? I have a line of code in the cellClick of a datagridview. System.Diagnostics.Trace.WriteLine("Cell Click before"); _this.DoDragDrop(DgLevels.Rows[e.RowIndex].Cells[DbCnst.Lev_ID].Value.ToString(), DragDropEffects.Move)_ System.Diagnostics.Trace.WriteLine("Cell Click after"); But when clicking one time on the cell, "Click before" appears in the output window, but it takes almost a second before "click after" appears. it also doesn't work like it should be. seems like it switches the drag and drop. click (drag) click second time and nothing happens, even when event is fired. looks like there is a timeout for the drag and drop. do i need to cancel it ? thx Kurt

      T Offline
      T Offline
      topcatalpha
      wrote on last edited by
      #2

      OKay, my fault. :-O I should have used the cellmousedown.. So this works better. Still one problem, it doesn't show the drag icon immediatelly, only when i start moving the mouse. greetz and merry Xmas Kurt

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups