Results 1 to 2 of 2

Thread: Redirected. Blackjack- Creating cards

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2014
    Posts
    2

    Redirected. Blackjack- Creating cards

    Hey guys, im having some problems with adding cards to my Blackjack program and after posting this in visualbasic.net section i was adviced to bring my problem here for help.

    At the moment I have labels that act in the place of cards, randomly generating a number and assigning it to the label, but now I want to use pictures and assign the picture a value.

    This is the code so far for the card labels:

    --------------
    Function AddCard()

    Dim Value As Integer


    Randomize()
    Value = (10 * Rnd() + 1)


    Return Value



    End Function

    PlayerCard1.Text = AddCard()
    PlayerCard2.Text = AddCard()
    PlayerTotal = Val(PlayerCard1.Text) + Val(PlayerCard2.Text)
    LblPlayerTotal.Text = PlayerTotal

    --------------

  2. #2
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,020

    Re: Redirected. Blackjack- Creating cards

    Is this a WPF application?

    KG
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width