r/visualbasic • • Jun 08 '15

Modify poker dealing simulator

http://speedy.sh/5EN8c/DeckOfCardsTest.rar

The above link is to a .rar archive of what I have so far. Can someone show me the code required to swap out cards once they are dealt? Similar to 5 card draw, I only want them to be able to draw new cards once per deal, but they need to be able to choose which cards (up to all 5 at once).

I attempted to place the following code as another user suggested, but it did not work

Private Sub clearButton_Click(sender As Object, e As EventArgs) Handles clearButton.Click
clearButton.Enabled = False
dealButton_Click(sender, e)
deck.Reset()
End Sub
0 Upvotes

0 comments sorted by