Quick Search for:  in language:    
Simple,code,shows,display,playing,card,image,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 117. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!A Simple Database WIth XP Design ( Without XP )
By Osen Kusnadi on 7/1

(Screen Shot)

Fractional Addition
By SAEED HASSAN on 7/1


Defrag at certain time
By Michael Nipper on 7/1


Click here to see a screenshot of this code!Extended Find Ver 2
By Roger Gilchrist on 7/1

(Screen Shot)

Y! Module
By NightCrawler on 7/1


Files Comperator (the right way)
By Jarry Claessen on 6/30


Simple UDP example
By Mick Walton on 6/30


CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

View a playing card using VBCARDS.OCX

Print
Email
 

Submitted on: 2/17/1999
By: Patrick K. Bigley  
Level: Not Given
User Rating: By 108 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code 9502 times.
 
 
     Simple code shows how to display any playing card image using the VBCRADS.OCX.

 
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 VBCARD
'     S.OCX
' Description:Simple code shows how to d
'     isplay 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://w
'     ww.Planet-Source-Code.com/vb/scripts/Sho
'     wCode.asp?txtCodeId=1405&lngWId;=1'for details.'**************************************

Dim CountCard As Integer
Private Sub Command1_Click()

If CountCard >= 69 Then CountCard = 1 'CountCard can be any number from 1 to 6 ' 8 'Each number equals different DSeck imag ' e. 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 notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
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 AM:PJ. 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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/1/2000 6:41:23 AM:raed shatnawi
i want this code in files
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/3/2000 5:06:35 PM:Elliot Pace
This is pretty confusing
How do I make 
a certain card on image1?
anyways, 
nice code
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.