controls dragdrop to be restricted

  • Thread starter Thread starter Hajash
  • Start date Start date
H

Hajash

Hi,
I wanted a label control drag to be restricted inside the boundary of
panel.When dragged out the label should not be hidden.ie when dragged out
only half the label will be seen that should not happen.Thanx in advance.

Regards,
Hajash
 
Hajash,

How do you drag that control at the moment.

I assume that you have somewhere this in your program what you test against
your borders.

new Point(Cursor.Position.X, Cursor.Position.Y)

I hope this helps

Cor
 
Back
Top