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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top