Click here to Skip to main content
15,889,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: build a service in vb to run on server core 2012 with minimum GUI Pin
Eddy Vluggen16-Jul-14 7:55
professionalEddy Vluggen16-Jul-14 7:55 
GeneralRe: build a service in vb to run on server core 2012 with minimum GUI Pin
jkirkerx16-Jul-14 7:58
professionaljkirkerx16-Jul-14 7:58 
GeneralRe: build a service in vb to run on server core 2012 with minimum GUI Pin
Eddy Vluggen16-Jul-14 8:29
professionalEddy Vluggen16-Jul-14 8:29 
AnswerRe: build a windows service in vb to run on server core 2012 with minimum GUI Pin
Richard Deeming16-Jul-14 8:19
mveRichard Deeming16-Jul-14 8:19 
GeneralRe: build a windows service in vb to run on server core 2012 with minimum GUI Pin
jkirkerx16-Jul-14 8:26
professionaljkirkerx16-Jul-14 8:26 
Questionprint bitmap file via serial port printer Pin
Member 1030446815-Jul-14 4:11
Member 1030446815-Jul-14 4:11 
AnswerRe: print bitmap file via serial port printer Pin
Dave Kreskowiak15-Jul-14 6:34
mveDave Kreskowiak15-Jul-14 6:34 
QuestionNeed help with poker hands codes Pin
Lapin Noir13-Jul-14 23:04
Lapin Noir13-Jul-14 23:04 
ASM
Here is what I have so far
[code] Public Class PokerHands

Sub InputFormat() 'Function to remove space and change characters to UPPER CASE
        InputDisplay.Text = InputDisplay.Text.Replace(" ", "").Replace(",","").ToUpper
    End Sub

    Sub FourOfaKind() 'Four of a Kind

    End Sub

    Sub ThreeOfaKind() 'Three of a Kind

    End Sub

    Sub Pair() 'A pair

    End Sub

    Sub Flush() 'A flush

    End Sub

    Sub Straight() ' A straight, if ace is low

    End Sub

    Sub AceStraight() 'An ace-high straight; 10, J, Q, K, A

    End Sub


    Private Sub InputDisplay_TextChanged(ByVal sender As Object, e As EventArgs) Handles InputDisplay.TextChanged



    End Sub

    Private Sub Button1_Click(ByValsender As Object, e As EventArgs) Handles Button1.Click
        Dim hands(4, 13) As Integer 'Example: If (2,11) = 1 then is JD
        Dim SuitsValue() As String = {"S", "D", "C", "H"}

        Dim FaceValue() As String = {"2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K", "A"}
    End Sub


End Class
[/code]

Hi here is what I have my code so far. I am simply stuck as how to make the program reads the user input and then display the correpsonding deck. For example: if the user input "aH, AS, 2D, 3C, 4C" the program will return ace of hearts, ace of spades, two of diamonds, three of clubs, and four of clubs? Also how can the program will recognize that the first letter (substring (0,1) is the FaceValue and the second letter substring(1,1) is the SuitsValue? I understand I will need a loop function to determine all five. I am sorry if I am asking stupid questions here but I am really stuck!!!

Thank you very much!

AnswerRe: Need help with poker hands codes Pin
Dave Kreskowiak14-Jul-14 2:20
mveDave Kreskowiak14-Jul-14 2:20 
GeneralRe: Need help with poker hands codes Pin
Lapin Noir14-Jul-14 5:18
Lapin Noir14-Jul-14 5:18 
GeneralRe: Need help with poker hands codes Pin
Dave Kreskowiak14-Jul-14 6:57
mveDave Kreskowiak14-Jul-14 6:57 
GeneralRe: Need help with poker hands codes Pin
Lapin Noir14-Jul-14 9:42
Lapin Noir14-Jul-14 9:42 
GeneralRe: Need help with poker hands codes Pin
Dave Kreskowiak14-Jul-14 10:31
mveDave Kreskowiak14-Jul-14 10:31 
GeneralRe: Need help with poker hands codes Pin
Lapin Noir14-Jul-14 11:56
Lapin Noir14-Jul-14 11:56 
GeneralRe: Need help with poker hands codes Pin
Dave Kreskowiak14-Jul-14 18:23
mveDave Kreskowiak14-Jul-14 18:23 
QuestionRemove image from first column in ListView Pin
jkirkerx13-Jul-14 12:41
professionaljkirkerx13-Jul-14 12:41 
AnswerRe: Remove image from first column in ListView Pin
Eddy Vluggen14-Jul-14 0:32
professionalEddy Vluggen14-Jul-14 0:32 
GeneralRe: Remove image from first column in ListView Pin
jkirkerx14-Jul-14 6:38
professionaljkirkerx14-Jul-14 6:38 
GeneralRe: Remove image from first column in ListView Pin
Eddy Vluggen14-Jul-14 7:43
professionalEddy Vluggen14-Jul-14 7:43 
Questionhow to Add Combo-box in DataGrid View to Select My Product Pin
D-Matrix's Systemware13-Jul-14 6:59
professionalD-Matrix's Systemware13-Jul-14 6:59 
AnswerRe: how to Add Combo-box in DataGrid View to Select My Product Pin
Richard MacCutchan13-Jul-14 7:31
mveRichard MacCutchan13-Jul-14 7:31 
QuestionList of List returning only copies of last list added Pin
BubbaBeans8-Jul-14 13:05
BubbaBeans8-Jul-14 13:05 
AnswerRe: List of List returning only copies of last list added Pin
Estys9-Jul-14 0:34
Estys9-Jul-14 0:34 
GeneralRe: List of List returning only copies of last list added Pin
BubbaBeans9-Jul-14 6:29
BubbaBeans9-Jul-14 6:29 
AnswerRe: List of List returning only copies of last list added Pin
Dave Kreskowiak9-Jul-14 2:36
mveDave Kreskowiak9-Jul-14 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.