VB icon

View a playing card using VBCARDS.OCX

Email
Submitted on: 1/1/2015 11:25:00 PM
By: Patrick K. Bigley (from psc cd)  
Level: Not Given
User Rating: By 108 Users
Compatibility:
Views: 41
 
     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!
				
**************************************
 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 (from psc cd)

 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
**************************************

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 13 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


 There are no comments on this submission.
 

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.