![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am making a checkers game with VB6. I have drawn the board with labels and the peices are image controls. Both are control arrays. How do I know which peice was moved? Here is my code to move a peice:
Private Sub lblSquare_OLEDragDrop(Index As Integer, Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single) If lblSquare(Index).BackColor = &HFFFFFF Then 'make sure its not a white square Exit Sub End If ImgRed(0).Left = lblSquare(Index).Left ImgRed(0).Top = lblSquare(Index).Top End Sub lblSquare is the name of the control array for each of the squares on the checker board. Index contains the square the peice was moved to, but there are multiple peices. Any ideas on what I'm missing? Thanks for the help. |
| Sponsored links |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drag and Drop | MrPewty | Software | 2 | 05-19-04 02:16 |
| British Drag Racing | Wild | Interesting Website Links | 0 | 02-14-04 17:55 |
| Drop a load on a politician's face | alanc | Interesting Website Links | 2 | 02-13-04 17:18 |
| what about a website for learning vb6 | man_im_bored | Programming | 4 | 07-20-03 07:59 |