Game Programming :: Make A Matching Card Game In VB 2010 - Show Cards For 10 Secs Then Change Cards To (AppPath & "Cards Ed.png")

Apr 19, 2012

I need to make a matching card game in VB 2010. i have generated my cards but now need to show the cards for 10 secs then change the cards to (AppPath & "Cards ed.png"). then when a user clicks on the card the card will flip over.*How would i set a timer to turn all my cards into*(AppPath & "Cards ed.png") after 10 secsbut still have the values from the array and when i click the cards they flip over (from red card to numbered card)

Private Sub Place()
Dim Counter As Integer = 1
For Row As Integer = 1 To Int_Grid_Size



Making Cards For Card Game?

Mar 11, 2012

I am using Visual studios 2010, And what I am trying to do is make a card game, and I have some ideas for how to put a lot of it together however I am having trouble getting started with making the cards to begin with.So I need something to call to represent the cards with numerical values with ace being 1 and king being 13.

View 4 Replies View Related

Game Programming :: Scopa (Disallowing The Use Of Cards Once Used)?

Jan 11, 2009

As the title says i have a deck of Italian Scopa cards (40)and I want to stop them from being delt once they have been used can i do this with an enabled/disabled or should i find a way to move the individual pictureboxes arround to do it

View 2 Replies View Related

Game Programming :: Program Is Designed To Generate A Random Hand Of Cards Out Of Our List?

Aug 19, 2008

Below is the code that we have been working on. We have bolded the parts which we are unsure about - they are producing errors. (its near the bottom)The program is designed to generate a random hand of cards out of our list of them. This program is a smaller version of what we hope to have in the full one - ie. It tries to get a random hand of 3 cards out of a possible 5.

The part we are having errors with is getting the images to display on each of the 3 'picturebox' objects using a loop (so we don't have to type each picturebox individually).


View 8 Replies View Related

Repeat Cards Showing Up In Game And Win Evaluating Code For Poker Game?

Jul 2, 2009

I am working on a poker game and I have the game setup the way I want it in terms of graphics and I have the code programed to deal the cards out exactly how I want them.  Granted, the code is very simplistic, but functional for a new programmer like myself.  I'm sure there are other more efficient ways to code my game, but I like mine so far because I can at least understand the majority of it.  With that being said, here are a few problems and questions that I have.

1. How come when all 12 cards are dealt out I have some cards repeating in the game?  For example, I get queen of diamonds in more than one picture box when I only want the card to be dealt once and then removed until the next game.

2. I was hoping to have a button 3 to clear all the boxes, basically resetting the game to the next game.  When I hit button 3 it only clears the contents of picturebox 10 and 12.Other notes:  I have the deal down the way I want it.  It deals the first 10 picture boxes and a second button deals the 11 and 12 picture boxes.

3. I know this is my next step so I want to post it with the code I currently have.  I want to start taking my project one step further by evalutating each of the three rows of cards (3 rows of 3 cards each - I'm not worried about the dealers hand (picture box 10, 11, 12 yet). So I want to evaluate a row of pictureboxes against a "pay scale" and display the win in a text box or label next to the 3 card hand.  For example, Q of diamonds, Q of Clubs, Q of spades would win 15, etc.  ( have a weird feeling I may have to change the names of the cards (I have them named card1, card2, etc. right now) to something that identifies them in order to evaluate the hands.

Here is the code that I currently have. I'm using visual basic.

Public Class Form1
Dim Rndm As New Random
Dim myPB(11) As PictureBox
Dim HiddenCards As New List(Of String)


View 1 Replies View Related

Make A Matching Card Game

Apr 18, 2012

i need to make a matching card game in VB 2010. i have generated my cards but now need to show the cards for 10 secs then change the cards to (AppPath & "Cards ed.png"). then when a user clicks on the card the card will flip over.How would i set a timer to turn all my cards into (AppPath & "Cards ed.png") after 10 secs but still have the values from the array and when i click the cards they flip over (from red card to numbered card)[code]

View 2 Replies View Related

Game Programming :: Creating A Card Game For VP?

May 21, 2010

I am trying to create a card game on microsoft visual studio 2008. But i am finding it tricky to get the right codes for the generating button. The button wiill display three random playing card suites and when all three match the user is declared the winner.

View 5 Replies View Related

Get The Cards Out Of Cards?

Dec 15, 2009

I need some code to get the cards out of cards.dll in  And do the cards have to go in a picture box?

View 2 Replies View Related

What Is Wild Cards And When To Use The Wild Cards

Feb 6, 2009

what is Wild cards how and when can i use the wild cards

View 1 Replies View Related

Accept Credit Cards In .NET

Jun 10, 2009

I would like my website to accept credit cards online. I will manually process the payment. How can I make sure my website is secure to accept payments? Does VISA have specific requirements? Also, how can I check that the credit card information is valid?

View 1 Replies View Related

Assigning Values To Cards?

Apr 27, 2009

basically i've gotten myself into a mess with some last minute project work. shame on me and all that but thats college students for ya. basically i seem to be having problems assiging a simple integer to some pictures in an array. now. basically its a card deck. i've looked this up so many times yet nothing comes to me that fits my code or the way i've been taught. in any case i've got an imagelist and put it into an array to symbolize a deck. now. as i'm doing blackjack i need each card to have its own value. so obviously 2 of hearts value = 2, king = 10 what i've done is created a function that calls on a string. and used a select case to give a value based on the filepath of the image. however it failed hoplessly. heres a piece of the code:

Sub getcardvalues(ByVal card As String)
Select Case card
Case "decklist.images.item(2club.png)"
value = 2


despite this seemingly simple solution i can't seem to pull out the path of these cards as a string. the array simply gives me a number and the actual picture dosnt want to be a string. so my question is this. how can i pull the image path out of the array (eg: deck(1) = decklist.images.item(3club.png)) and turn that into a useable string?

View 1 Replies View Related

Cards Needed For A Straight

Nov 24, 2009

how to calculate how many cards are needed at least to make a straight in texas hold'em?

pratic examples:[code..]

View 2 Replies View Related

Deck Of Cards- Blackjack?

Mar 1, 2009

new to programming and I was wondering how would I make a deck of cards for a blackjack program? I would post some code but I don't know where to start

View 3 Replies View Related

Getting The Cards To Generate Randomly?

Mar 5, 2012

I have to make a card game called SNAP. The point of the game is that two players will flip their card and if they match then one of them have to call out snap. The first one to call out snap gets the card.

I'm having trouble on getting the cards to generate randomly but match every now and then.

View 3 Replies View Related

Random Numbers For Cards?

Feb 27, 2009

Ive got 16 cards to make 8 pairs (simple) ive got it to detect a pair by piccard1.image.TAG what i need to do is though, make the 'tag' part random, 0-15 so i can give each card a tag, but it has to be unique and i cant make it give 16 different number.

View 2 Replies View Related

Choose Between Different Sound Cards For Playback

May 2, 2010

I have a program that I have been building for quite some time, which is sort of a media center type of program. One of the features it includes is a CallerID and call management system that I have integrated into it.I am actually turning the ringers off on my phones, and the program will have it's own ringer instead. One reason i'm doing that is, it is programmed only to ring if I actually have the number already in my phonebook (i.e. no more telemarketers), and other features like quiet time (after a preset time, let's say 11:00 the phone won't ring).So anyhow I have 2 sound cards in my system. One sound card is connected to my living room home theater, which would be for watching tv, movies, etc.The other sound card is going to a separate amplifier that will power speakers that are throughout the house. I want to be able to programatically tell my program to output sound on the secondary sound card.It will be just a simple wav file, and hopefully speech as well (using the system. speech.speech synthesizer).So no matter if your watching a movie, or playing xbox (meaning the stereo will no longer be playing audio from the computer),when the phone rings you will hear the ringer over the speakers, along with a voice saying "Joe Schmoe is calling".I don't know if I can specifically have it play certain sounds over one card, or if it is a per application setting.For instance, if you are watching a movie (meaning the movie is playing through the windows media player control, inside of my program), and the phone rings, I want the phone to ring on the other card without changing the audio from the movie. If i'm not able to do it that way, and if the program itself is only able to play through one card at a time, I will simply make the caller id portion it's own separate application, that way I could make it happen.

View 19 Replies View Related

Create A Program That Randomizes 52 Cards?

Jun 12, 2010

Below is what I have so far this is a webproject, but its for my VB class so I'm not sure where else to post. The object is to create a program that randomizes 52 cards and based on the five cards it draws determine whether its 2 of a kind, three of a kind, straight, or flush.

Partial Class _Default
Inherits System.Web.UI.Page
Dim used(51) As Boolean


View 4 Replies View Related

Enable / Disable NIC When Two Cards Present?

Oct 2, 2009

I need to enable /disable Nic I have a system with two nic cards "Local Area Connection" and Local Area Connection 2" my code will enable and disable the second nic no problem but when I try to disable /Enable "Local Area Connection" it sees the nic but disables "Local Area Connection 2" code to the Enable NIC.[code]...

View 5 Replies View Related

Get Value Of Total Amount Of Cards To Reset

Nov 10, 2011

i am working on a blackjack program, the dealers button works fine and all but when i press the button to hit me it says "Object reference not set to an instance of an object.", and i had it work before, but when it does work the aces either count as 11 or 0, and how can i get the value of the total amount of cards to reset.

View 24 Replies View Related

Random Playing Cards Deal?

Nov 4, 2010

I am creating a VB.Net program to deal out five random playing cards.For that purpose i checked the following tutorial - [URL]..It works great. But It has too much functionality I just want to get rid of the unwanted code to just dealing out 5 random cards. functions and classes from thius program that I should use.

View 2 Replies View Related

Simulating A Real Deck Of Cards?

Sep 21, 2009

Ok here's what my code looks like as of now:

Private Sub btnDeal_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDeal.Click
Dim RandomClass As New Random()
Dim RandomNumber As Integer[code].....

View 6 Replies View Related

Call Up The Cards Within The VISTA Operating System?

May 4, 2009

I am working on a simple card game. I have done several in the past, but always by creating card images in a picturebox. I would like to call up the cards within the VISTA operating system. I get the following error:Unable to load DLL 'cards.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I have made the following declarations:

Inherits System.Windows.Forms.Form
Private w As Integer = 0
Private h As Integer = 0


I am using VB EXPRESS 2008, (for the first time). As I recall, I did not have this problem in VB EXPRESS 2005.

View 1 Replies View Related

Write A Method To Shuffle A Deck Of Cards

Nov 13, 2011

I have a standard deck of 52 cards is represented in an array. Each card is represented as an integer. I wrote the below function to shuffle the cards. Does the code below look ok?

Module Module3
Sub Main()
' initialize array


View 3 Replies View Related

Bridge Program The Time Between Appearance Of Cards Longer?

Apr 24, 2011

I want in my bridge program the time between appearance of cards longer. Different suggestions can be found in the forum. I tried "System.Threading.Thread.Sleep(100)" resulting in the card appearing in half and after the delay the rest. Only the following code does as intended:

Dim Timer As DateTime = Now.AddMilliseconds(2000)
Do Until (Now > Timer)

I place this just for the code of the next card to be displayed. It is strange that the dim statement should be there. When I place it instead at the beginning of the program the code doesn't function anymore.I can live with that, however, in the forum some contributors write that this code is dangerous as it can slow down the machine considerably..Is that true or and/or only true for older versions of Visual Basic?

View 5 Replies View Related

Call For The Internal Sound Cards And/or Midi Synthesizer?

Jun 22, 2009

I just started programming in vb 2008 Using vb studio 2008 and vb 4.0 Running Windows XP Home Edition My question concerns the capabilities of vb to call for the internal sound cards and/or midi synthesizer.Can a module call the sound card for it to play MULTIPLE notes at the same time, notes of fixed frequency and duration?

I have tried programming vb 4 AND vb2008 for them to modify the default BEEP sound: using a code i found on internet:private declare Function Beep lib "kernel32" (byval soundFrequency as int32, byval soundDuration as int32) as int32


View 2 Replies View Related

Detecting Addition/Removal Of SDHC Cards In WndProc?

Aug 30, 2011

I am attempting to detect addition/removal of volume media in a Visual Studio 2005 project. I can get this to work using the WndProc message WM_DEVICECHANGE on all types of volumes except SDHC (Secure Digital High Capicity) cards. Is there another Windows Message I have to listen for? If so, what is it, and what else do I have to do?

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Dim str As String
Dim devtype As Int32


View 1 Replies View Related

VS 2008 - Shortcuts - 416 Different Cards (8 Decks) Declare Them Without Naming Each One?

Oct 31, 2009

I have 416 different cards (8 decks) I dont want to spend too much time and declare each one. Is here way easy way to declare them without naming each one?


Dim card1, card2 , cand416 as integer



I did this and it took me 4 ever:

'deck 1
card1 = 2
card2 = 3


View 5 Replies View Related

Game Programming :: Speed (Card Game) One AI Player And A Human Player

Nov 23, 2010

I'm making a speed card game [URL] for the final in one of my programming classes. I'm looking for a little assistance with how to go about getting it done the best way. I've included the code I have so far below. How does it look? What would you do differently? Would you do anything the way I did? I need to have one AI player and a human player.


View 3 Replies View Related

2008 - Draw Random Numbers From Comboboxes For Dealing Cards

Jan 23, 2009

I'm trying to make a program that'll play the card game "War". I've started to code the dealing process, but it doesn't seem to be working. I currently have 3 comboboxes on the form each with numbers representing different cards, 1 that contains all the cards to be dealt, 1 that contains the user's cards, and 1 that contains the computer's cards. I plan to just draw random numbers from these comboboxes for the dealing. However, nothing happens when I click the tool-strip button that's supposed to deal the cards. [Code]

View 5 Replies View Related

Game Programming :: Make A Game In VB In Which Character Can Move Around, Jump, And Kill Things?

Apr 2, 2008

im trying to make a game in visual basic in which your character can move around, jump, and kill things. I can get the picture box with the character to move and everything is fine. but i did run into one problem. when the character moves over a tree (or something) you can see the gray backround of the character as i made in paint. how do i make the backround of the picturebox transparent?

View 4 Replies View Related

Game Programming :: Transparant Images - Make A Game Which Basiclly Lets You Shoot Ducks

Feb 1, 2010

I am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.

My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.

Below is an image to illistrate my problem

I have tried adding transparent background, transparant key etc

View 2 Replies View Related

Poker Code - To Deal Cards And Compile A String List For Player And Dealer

May 2, 2009

I have code to deal cards and compile a string list for player and dealer. I want to rank the cards for both player and dealer. I dont know how to compare characters in a string or text (which would give me a starting point).

My Code:

View 1 Replies View Related

VB 2010 Make A Matching Game - Random Locations?

Apr 25, 2012

I am using Vb 2010 I am trying to make a matching game. My problem is I have picture boxes 16 to be exact. I want each one to randomly go to a certain place I have already picked on the form. That means that I have 16 places already picked and I have made point variables for all 16. I can not seam to randomize the picture boxes to be placed in only those 16 locations.

View 13 Replies View Related

Wrote A Games Program Which Used The File "Cards.dll"?

Aug 4, 2011

My question is : How do I find out what processes/information are contained inside System .dll files ?

I recently wrote a games program which used the file "Cards.dll" in which was stored a full deck of cards. That was exactly what I wanted. I discovered the existance of this file by chance from a friend and would like to get a list of the contents and functionality of all the other .dll files.

View 3 Replies View Related

Game Of 21 Card Game, Code For Checking Score Is Not Working?

Jan 13, 2012

Check Score: The winner is the one with the highest score less than or equal to 21If both scores(player total and computer total) are over 21, or if both are equal but under 21, the game is declared a draw.

There is something wrong with this line:
If intPlayerCardTotal < intScore And intComputerTotal < intScore Then
MsgBox "Draw"


View 6 Replies View Related

Change The Tutorial 4 Matching Game To Use Pictures?

Aug 1, 2011

I would like to change the matching game to use pictures.I tried making a list of images but they are always visiable

View 9 Replies View Related

Game Programming :: Adding Score To Rock Paper Scissor Game?

Oct 3, 2011

Im new to VB. how do I get to add the code is


View 6 Replies View Related

Game Programming :: Prevent Users Typing In Random Letters In A Text Box-Scrabble Game?

May 4, 2011

I have created a scrabble game that generates random letters. For the user to type in a word using the random letters they have to type it in a text box.

I want my program to prevent users from typing in letters that are not provided in the text box and to allow them to type in the random letters that are provided.

View 4 Replies View Related

Game Programming :: Spinning Reel - Fruit Machine Game For Windows Mobile Device

Feb 16, 2011

I'm trying to make a simple fruit machine game for windows mobile device.

I can create the game easily enough and flip through pictures in a picture box to display the correct symbol.. but what I'd like to do is do a proper spinning reel, but have no idea where to even start.

What I have is a list of images in an imagelist (or individual files) - what I'd like is them attached to each other and moving downwards, preferably as though it were going around a drum but just them moving would be a start.

View 7 Replies View Related

Game Programming :: Pig Dice Game - When Program Runs - Never Goes To Computer's Turn And Does Not Update Users Score Either

Apr 18, 2012

On programming assignment without having any real experience in vb. I guess I don't understand subroutines that well. When the program runs it never goes to the computer's turn and does not update the users score either. This assignment is already in but would like to know what is going wrong. Using VB 2010, and this is windows application.

Public Class Form1
Dim Myturn As Integer
Dim Computerturn As Integer


View 6 Replies View Related

Copyrights 2005-15, All rights reserved