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