Important alert: (current site time 4/18/2014 10:00:07 PM EDT)
 

VB icon

View a playing card using VBCARDS.OCX

Email
Submitted on: 2/17/1999
By: Patrick K. Bigley  
Level: Not Given
User Rating: By 108 Users
Compatibility:
Views: 26958
 
     Simple code shows how to display any playing card image using the VBCRADS.OCX.

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
**************************************
Windows API/Global Declarations for :View a playing card using VBCARDS.OCX
**************************************
	Global CountCard As Long
	
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
**************************************
 Name: View a playing card using VBCARDS.OCX
 Description:Simple code shows how to display any playing card image using the VBCRADS.OCX.
 By: Patrick K. Bigley

 Returns:Returns an image of a playing card.

 Assumes:Create a form (Form1)
Create a command button control (Button1)
Create an image control (Image1)
Create a label control (Label1)
Create a VBCARDS control (Deck1)
A free copy of the VBCARDS OCX control can be downloaded
at http://bargainbd.com/opusopus/vbcards.htm
or
http://www.geocities.com:80/SiliconValley/Grid/7284/cardocx1.zip
Don't crowd the screen with the controls, space
them neatly

 Side Effects:Takes a second or two for the OCX file to load into VB

This code is copyrighted and has limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=1405&lngWId=-1for details.**************************************

Dim CountCard As Integer
 Private Sub Command1_Click()
If CountCard >= 69 Then CountCard = 1
'CountCard can be any number from 1 to 68
'Each number equals different DSeck image.
 Deck1.ChangeCard = CountCard 'Change the Picture property of Deck1
 Image1.Picture = Deck1.Picture 'Copy the picture of Deck1
Label1.Caption = "The number for this card is " & CountCard
CountCard = CountCard + 1
End Sub
Private Sub Form_Load()
CountCard = 1
'the "Destination pad"
 Image1.Picture = Deck1.Picture 'Copy the picture of Deck1 to image1
End Sub


Other 32 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/11/1999 7:13:00 AMPJ. Laszkowicz

Thanks, it's just what I've been looking for. Great work on the hacker's toolbox and encryptor, but on the encrypter I'm having prblems decrypting the files, it just seems to re-encrypt the encrypted file. If you can spare a minute I wouldn't mind you explaining how to sort this problem out.
(If this comment was disrespectful, please report it.)

 
3/1/2000 6:41:23 AMraed shatnawi

i want this code in files
(If this comment was disrespectful, please report it.)

 
10/3/2000 5:06:35 PMElliot Pace

This is pretty confusing
How do I make a certain card on image1?
anyways, nice code
(If this comment was disrespectful, please report it.)

 
11/2/2003 3:39:57 PM

hi,
I am reaaly impressed with the game codes which is available. I was wandering if somebody can help me built a Winsock Memory Card Game.
(If this comment was disrespectful, please report it.)

 
10/14/2005 3:51:08 AMkk

hey! wer can i c the vbcards.ocx
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.