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 & Drop

Drag & Drop

Scheduled Pinned Locked Moved C#
helpcsscomtoolsarchitecture
1 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.
  • S Offline
    S Offline
    sreejith ss nair
    wrote on last edited by
    #1

    Hi, I have a panel control in my application. The Paint event of panel control is overrided to show some solid grid line and measures (like scale) on my panel control. I have a collection of label controls (not less than 250 - 300 in all time) in that panel , which we can drag or drop anywhere inside the panel region. I am overriding paint method of my custom label or labels which is there inside the panel. My problem start here, 1. the moment i start dragging the label control in side the panel , the label show transparent shadow of that label control which i am dragging . 2. If i hold my mouse for a second , that is in between drag and drop. The control got heavy flickering. I tried Double buffering and related tricks using SetStyle() method. But still there is no change in status. 3. Last and most important issue that i am facing is, location of mouse cursor. i.e., I need to place controls (custom labels) in some exact locations (measured location). But i can't able to control mouse cursor. If i start dragging , then my mouse will be near to 10 cm far from my control which i am dragging. Really got stuck . Any Idea ?.:( Sreejith Nair [ My Articles ]

    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