Click here to Skip to main content
15,908,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Question about threads Pin
crashcup8-Nov-09 14:18
crashcup8-Nov-09 14:18 
GeneralRe: Question about threads Pin
Dave Kreskowiak8-Nov-09 14:50
mveDave Kreskowiak8-Nov-09 14:50 
GeneralRe: Question about threads Pin
crashcup8-Nov-09 15:09
crashcup8-Nov-09 15:09 
GeneralRe: Question about threads Pin
Dave Kreskowiak9-Nov-09 2:10
mveDave Kreskowiak9-Nov-09 2:10 
QuestionSorting an Array ASCENDING ORDER Pin
PAguilar098-Nov-09 9:31
PAguilar098-Nov-09 9:31 
AnswerRe: Sorting an Array ASCENDING ORDER Pin
Luc Pattyn8-Nov-09 9:40
sitebuilderLuc Pattyn8-Nov-09 9:40 
AnswerRe: Sorting an Array ASCENDING ORDER Pin
Luc Pattyn8-Nov-09 10:06
sitebuilderLuc Pattyn8-Nov-09 10:06 
GeneralRe: Sorting an Array ASCENDING ORDER Pin
PAguilar098-Nov-09 14:53
PAguilar098-Nov-09 14:53 
Okay i tried fixing my code but I am still not getting my labels to sort the values they contain in ascending order??

the labels look like this at form load:

Player 1: D7 HK D2 CK D10 H5 HA C4 C6 C7 H2 SJ D3

Player2: DA S6 HQ CJ DQ D9 CQ H6 C3 SA S8 D5 D8

When i hit Arrange button the output should
sort them in ascending order: P1: C4 C6 D2 D3 D7 D10 H2 H5 HK HA SJ

AND SO ON AND SO ON FOR 4 OTHER LABELS

but i dont know what I am missing or not doing correctly??? Please help

For i As Integer = 0 To ShuffleCards.cards2.Length - 1

    'this will sort your array in ascending order
    '  For count = 0 To ShuffleCards.cards2.Length - 1 Step 4
    For j = count + 1 To ShuffleCards.cards2.Length - 1
        If ShuffleCards.cards2(count) > ShuffleCards.cards2(j) Then
            ShuffleCards.cards2(count) = ShuffleCards.cards2(j)
            'temp = ShuffleCards.cards2(j)


            lblPlayer1.Text += ShuffleCards.cards2(j)
            lblPlayer2.Text += ShuffleCards.cards2(j + 1)
            lblPlayer3.Text += ShuffleCards.cards2(j + 2)
            lblPlayer4.Text += ShuffleCards.cards2(j + 3)

        End If

    Next j
    'Next count


Next

GeneralRe: Sorting an Array ASCENDING ORDER Pin
Luc Pattyn8-Nov-09 15:12
sitebuilderLuc Pattyn8-Nov-09 15:12 
GeneralRe: Sorting an Array ASCENDING ORDER Pin
PAguilar099-Nov-09 3:15
PAguilar099-Nov-09 3:15 
QuestionHow to add all the items of treeview within the combobox? Pin
Milad.Biroonvand8-Nov-09 1:21
Milad.Biroonvand8-Nov-09 1:21 
AnswerRe: How to add all the items of treeview within the combobox? Pin
Milad.Biroonvand8-Nov-09 2:31
Milad.Biroonvand8-Nov-09 2:31 
GeneralRe: How to add all the items of treeview within the combobox? Pin
Steven J Jowett8-Nov-09 5:40
Steven J Jowett8-Nov-09 5:40 
QuestionHow to get a movie resolution (film file) Pin
Milad.Biroonvand7-Nov-09 21:03
Milad.Biroonvand7-Nov-09 21:03 
RantRe: How to get a movie resolution (film file) Pin
Milad.Biroonvand7-Nov-09 21:45
Milad.Biroonvand7-Nov-09 21:45 
AnswerRe: How to get a movie resolution (film file) Pin
Christian Graus7-Nov-09 22:31
protectorChristian Graus7-Nov-09 22:31 
GeneralRe: How to get a movie resolution (film file) Pin
Milad.Biroonvand7-Nov-09 22:42
Milad.Biroonvand7-Nov-09 22:42 
GeneralRe: How to get a movie resolution (film file) Pin
Christian Graus8-Nov-09 8:58
protectorChristian Graus8-Nov-09 8:58 
QuestionArray Elements to different LABELS Pin
PAguilar097-Nov-09 19:54
PAguilar097-Nov-09 19:54 
AnswerRe: Array Elements to different LABELS Pin
dan!sh 7-Nov-09 20:59
professional dan!sh 7-Nov-09 20:59 
AnswerRe: Array Elements to different LABELS Pin
Christian Graus7-Nov-09 22:32
protectorChristian Graus7-Nov-09 22:32 
QuestionColorDialog Help! Pin
thebiostyle7-Nov-09 15:43
thebiostyle7-Nov-09 15:43 
AnswerRe: ColorDialog Help! Pin
Christian Graus7-Nov-09 22:33
protectorChristian Graus7-Nov-09 22:33 
QuestionOne program code Gsm_Modem to send or receive has to face. Pin
Ir-win ChakadCo7-Nov-09 5:19
Ir-win ChakadCo7-Nov-09 5:19 
AnswerRe: One program code Gsm_Modem to send or receive has to face. Pin
Christian Graus7-Nov-09 9:13
protectorChristian Graus7-Nov-09 9:13 

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.