Link to home
Start Free TrialLog in
Avatar of askcool
askcool

asked on

tic tac toe game, drag a control to another control

Hi there,

I am working on a tic tac toe game, in which the X's and O's are user defined controls. I have a board which is a user defined control as well. The board has 9 cells, all these cells are labels.

I need to do a click, drag and drop moves on the controls to make a move.

So far i've used drag_enter and mouse_down functions but haven't been able to show the control move with the drag and drop it on the cell.

I am aware that the coordinates are different for screen and the actual form, and i would have to work with pointtoclient and and pointtoscreen methods to make them move and drop right.

Could someone please tell me how would i do so, or give me an example of a drag and drop. There was one on msdn for image drag and drop but it did not help me with dragging a control and dropping it.

Thanks
Avatar of askcool
askcool

ASKER

Hi there,
 
Could someone just tell me how to do a simple drag and drop? Actually i have to do this for user defined controls. But if someone can just tell me how to drag a label and drop it on another label I can use it for my game. Its really urgent. Please help!

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial