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
Next Topic (How to Embed any executable program to visual basic) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Wich image selected on chess game?
Poster Message
Afshin_Zavar
Level: Sage

Registered: 17-07-2003
Posts: 64

icon Wich 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

player selected white/black Square or on of the Queen, Knight,King  images ?
Thanks, Afshin
This is very important with me, please help me.

Respectfully, Afshin_Z@Yahoo.Com


[Edited by Afshin_Zavar on 22-09-2003 at 06:31 AM GMT]

____________________________
Persia

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

Registered: 04-04-2002
Posts: 1621
icon Re: Wich image selected on chess game?

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



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

21-09-2003 at 10:41 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: Wich image selected on chess game?

Just an idea for the pieces  


http://www.thesun.co.uk/popupWindow/0,,13-2003431693,00.html

Steve  

[Edited by admin on 24-09-2003 at 04:20 PM GMT]

22-09-2003 at 12:30 PM
View Profile Send Email to User Show All Posts | Quote Reply
sumdawgy
Level: Trainee

Registered: 10-11-2007
Posts: 1
icon Re: Wich image selected on chess game?

quote:
steve_w wrote:
Just an idea for the pieces  


http://www.thesun.co.uk/popupWindow/0,,13-2003431693,00.html




heh... like you're gonna pay attention to the ACTUAL chess game!  
10-11-2007 at 08:37 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Wich image selected on chess game?
Next Topic (How to Embed any executable program to visual basic) New Topic New Poll Post Reply
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