Click here to Skip to main content
15,890,436 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Most of this depends on how you're representing your cards, but...

First, get rid of that replace where you remove all the commas. You'll need them to split the string with.
string[] cardSpecifiers = InputDisplay.Text.Split(new string[] { "," }, System.StringSplitOptions.RemoveEmptyEntries);


Then it's a simple matter of iterating over the returning array of strings and parsing each for a card value and suit.
for (int i = 0; i < cardSpecifier.Length; i++)
{
    // This is very dependent on how you're storing your card values and suits.
    // If you copy-n-paste this code into your app, you're screwing yourself.
    //
    // THIS IS ONLY AN EXAMPLE!
    cardValues[i] = cardSpecifiers[i].SubString(0, 1);
    cardSuits[i] = cardSpecifiers[i].SubString(1,1);
}

A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

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 
QuestionVB.net debug question Pin
James Carlo Valdeavilla8-Jul-14 4:40
James Carlo Valdeavilla8-Jul-14 4:40 
AnswerRe: VB.net debug question Pin
Dave Kreskowiak8-Jul-14 14:33
mveDave Kreskowiak8-Jul-14 14:33 
AnswerRe: VB.net debug question Pin
Richard MacCutchan8-Jul-14 23:23
mveRichard MacCutchan8-Jul-14 23:23 

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.