poker game RRS feed

  • Question

  • Hi, there

    I don't know how to load 52 cards in an image for poker game

    I try to do an array but i can't open it

    is there anyone help me this?

    thank you so much!


    • Moved by SamAgain Wednesday, June 16, 2010 6:37 AM (From:Common Language Runtime)
    Wednesday, June 9, 2010 4:40 AM

All replies

  • 1) You might want to ask on a language specific forum... 

    2) What is the source of the card images?

    Tom Shelton
    Wednesday, June 9, 2010 4:53 AM
  • Hi,

    I need help how to get 52 cards picture in image in web form in vb 2008

    • Merged by SamAgain Wednesday, June 9, 2010 6:47 AM similar
    Wednesday, June 9, 2010 5:29 AM
  • I have 5 images

    when the deal button is clicked, the cards will appear randomly

    I put 52 cards in a web forder

    I make this game in Web form using visual studio

    please help

    thank you so much!

    Wednesday, June 9, 2010 5:34 AM
  • using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    namespace ImageLoader
      public partial class Form1 : Form
        public Form1()
        private void Form1_Load(object sender, EventArgs e)
          DirectoryInfo directoryInfo = new DirectoryInfo(@"path");
          FileInfo[] fileInfo = directoryInfo.GetFiles("*.jpg");
          //you could use a for each loop here to get the files to an image array and then set whatever you want to the picture box.
          pictureBox1.ImageLocation = fileInfo[0].Directory.ToString() + @"\" + fileInfo[0].Name;
    Hope this helps.
    Regards, Chethan Kamath. "Remember that if the world didn't suck, we'd all fall off."
    Wednesday, June 9, 2010 11:58 AM

    Hi, there!

    I am beginer in visual studio, so what i know is all basic things

    I am doing my project, but i am stuck now

    I describe my project as follow so that you can be easy to understand what is going on. This project makes a poker game .

    Please help me code this programe

    Thank you so much!


    1.     Create a new Web Site.

    2.     Lay out the five cards and the five checkboxes on the web page.

    3.     Add a label to hold the results, and a button labeled “Deal”.



    1.     When the form comes up, the backs of the cards should show.

    2.     When the “Deal” button is clicked, use the random number feature of Visual Basic to choose five cards at random. Make sure the same card isn’t chosen twice. Think about how to do this.

    3.     Evaluate the hand that is dealt. If it contains a pair, two pair, or three of a kind, display a message to that effect in your label, including the name of the card(s) that are matched up.

    Wednesday, June 9, 2010 10:52 PM