borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Charting/Graphing Sound)Next Topic (Communicate with television) New Topic New Poll
AndreaVB Forum : Multimedia : How can find out, which image selected on chess game? This topic has been locked
Poster Message
Afshin_Zavar
Level: Sage

Registered: 17-07-2003
Posts: 64

icon 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

21-09-2003 at 04:35 PM
View Profile Send Email to User Show All Posts Visit Homepage
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: How can find out, which image selected on chess game?

If the picture controls have a "Tag" property you could store it there.

Since last time I merged and removed a duplicate post it killed the entire thread. I'm just locking this one.

Go To: http://www.andreavb.com/forum/viewtopic.php?TopicID=2010&page=0

[Edited by JLRodgers on 21-09-2003 at 04:41 PM GMT]

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

21-09-2003 at 10:40 PM
View Profile Send Email to User Show All Posts Visit Homepage
AndreaVB Forum : Multimedia : How can find out, which image selected on chess game? This topic has been locked
Previous Topic (Charting/Graphing Sound)Next Topic (Communicate with television) New Topic New Poll
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder