MajorGeeks Support Forums

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

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


Reply
 
Thread Tools Display Modes
  #1  
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.
Reply With Quote
Sponsored links
Reply

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 15:52.


MajorGeeks.Com Home Page
| Admin Tools | All In One | Anti-Spyware | Anti-Virus | Appearance | Backup | Benchmarking | BIOS | Browsers | Covert Ops |
Data Recovery | Diagnostics | Drive Cleaners | Drive Utilities | Drivers | Driver Tools Ergonomics | Firewalls | Games | Game Tweaks | Graphics | Input Devices | Internet Tools | Macintosh | Mail Utilities | Memory | Messaging | Monitoring | Microsoft | Multimedia | Networking | Office Tools | Process Management | Processor | Registry | Security | System Info | Toys | Video | Miscellaneous
|
Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger