MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.

Closed Thread
Thread Tools Display Modes
Old 06-06-04, 13:20
jonathan03 jonathan03 is offline
Private E-2
Join Date: May 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB6 Drag Drop

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drag and Drop MrPewty Software 2 05-19-04 02:16
what about a website for learning vb6 man_im_bored Software 4 07-20-03 07:59

All times are GMT -5. The time now is 04:14.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds

All content Copyright source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger