Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tic tac toe game, drag a control to another control

Status
Not open for further replies.

adev111

Programmer
Jul 8, 2004
44
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top