Afshin_Zavar Level: Sage
 Registered: 17-07-2003 Posts: 64
|
How can find out, which image selected on chess game?
Hi all VB coders on the earth!
This is Afshin
I'm writing Chess game with visual Basic 6.
Now I have difficulty on understanding which image selected.
Please see code below.
Private sub Form_Load()
Pic(1).Picutre=LoadPicture(“Rook.jpg”)
Pic(2).Picutre=LoadPicture(“Knight.jpg”)
Pic(3).Picutre=LoadPicture(“Bishop.jpg”)
Pic(4).Picutre=LoadPicture(“Queen.jpg”)
Pic(5).Picutre=LoadPicture(“King.jpg”)
Pic(6).Picutre=LoadPicture(“Bishop.jpg”)
Pic(7).Picutre=LoadPicture(“Kinght.jpg”)
Pic(8).Picutre=LoadPicture(“Rook.jpg”)
End Sub
Now, when player wanna drag-drop, how can find out that which image has been selected
This is very important with me, please help me.
Respectfully, Afshin_Z@Yahoo.Com
[Edited by Afshin_Zavar on 21-09-2003 at 04:38 PM GMT]
____________________________
Persia
|