Click here to Skip to main content
16,005,339 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Convert ASCII code points to UNICODE Pin
Kschuler14-Jul-06 9:07
Kschuler14-Jul-06 9:07 
GeneralRe: Convert ASCII code points to UNICODE Pin
Christian Graus13-Jul-06 5:17
protectorChristian Graus13-Jul-06 5:17 
GeneralRe: Convert ASCII code points to UNICODE Pin
Dave Kreskowiak13-Jul-06 6:28
mveDave Kreskowiak13-Jul-06 6:28 
QuestionValidation of Textbox Pin
Larry White13-Jul-06 4:33
Larry White13-Jul-06 4:33 
AnswerRe: Validation of Textbox Pin
Agus Budianto13-Jul-06 18:10
Agus Budianto13-Jul-06 18:10 
GeneralRe: Validation of Textbox Pin
Agus Budianto14-Jul-06 5:14
Agus Budianto14-Jul-06 5:14 
GeneralRe: Validation of Textbox Pin
Larry White14-Jul-06 12:22
Larry White14-Jul-06 12:22 
QuestionBubble sort Pin
NickiG13-Jul-06 4:22
NickiG13-Jul-06 4:22 
Hi, I have written some code that will populate 6 random numbers into 6 seprate labels, but before I can add the code to colour code these labels I need to sort the labels into accending order, as this is an assignement I have been asked to use the bubble sort. Below is a sample of the code that selects the numbers and places them into the labels then I get stuck in writing the code for the bubble sort..... any help is appreciated!! Big Grin | :-D

Selects the numbers:
Dim numbers(3) As Integer
Dim counter As Integer

numbers(0) = Int(Rnd() * 49) + 1

Do
numbers(1) = Int(Rnd() * 49) + 1
Loop While numbers(1) = numbers(0)

Do
numbers(2) = Int(Rnd() * 49) + 1
Loop While numbers(2) = numbers(1) Or numbers(2) = numbers(0)

Do
numbers(3) = Int(Rnd() * 49) + 1
Loop While numbers(3) = numbers(0) Or numbers(3) = numbers(2) Or _
numbers(3) = numbers(1)
For counter = 0 To 3

'This will update the random numbers in the labels
lblLottoBall1.Text = numbers(0)
lblLottoBall2.Text = numbers(1)
lblLottoBall3.Text = numbers(2)
lblLottoBall4.Text = numbers(3)

AnswerRe: Bubble sort Pin
Christian Graus13-Jul-06 4:25
protectorChristian Graus13-Jul-06 4:25 
AnswerRe: Bubble sort Pin
Eric Dahlvang13-Jul-06 6:21
Eric Dahlvang13-Jul-06 6:21 
QuestionHow to convert amount into words in crystal report Pin
swapnilbhavsar13-Jul-06 3:54
swapnilbhavsar13-Jul-06 3:54 
AnswerRe: How to convert amount into words in crystal report Pin
Gulfraz Khan13-Jul-06 7:02
Gulfraz Khan13-Jul-06 7:02 
QuestionSynchronizingObject problem Pin
coolestCoder13-Jul-06 3:40
coolestCoder13-Jul-06 3:40 
AnswerRe: SynchronizingObject problem Pin
Dave Kreskowiak13-Jul-06 5:11
mveDave Kreskowiak13-Jul-06 5:11 
QuestionApp does not get focus on Win 2000. Pin
seamie13-Jul-06 2:46
seamie13-Jul-06 2:46 
AnswerRe: App does not get focus on Win 2000. Pin
Dave Kreskowiak13-Jul-06 4:51
mveDave Kreskowiak13-Jul-06 4:51 
Questiondatabase programming Pin
ramin_ok13-Jul-06 0:38
ramin_ok13-Jul-06 0:38 
AnswerRe: database programming Pin
Christian Graus13-Jul-06 4:26
protectorChristian Graus13-Jul-06 4:26 
QuestionHow I do Video Streaming in VB.NET Pin
sam_pune12-Jul-06 23:42
sam_pune12-Jul-06 23:42 
AnswerRe: How I do Video Streaming in VB.NET Pin
Dave Kreskowiak13-Jul-06 4:40
mveDave Kreskowiak13-Jul-06 4:40 
Questionusing VB 6.0 how to reset the timer while excuting the program Pin
Simple programmer12-Jul-06 23:14
Simple programmer12-Jul-06 23:14 
AnswerRe: using VB 6.0 how to reset the timer while excuting the program Pin
Dave Kreskowiak13-Jul-06 4:31
mveDave Kreskowiak13-Jul-06 4:31 
GeneralRe: using VB 6.0 how to reset the timer while excuting the program Pin
Simple programmer13-Jul-06 15:44
Simple programmer13-Jul-06 15:44 
GeneralRe: using VB 6.0 how to reset the timer while excuting the program Pin
Dave Kreskowiak14-Jul-06 0:41
mveDave Kreskowiak14-Jul-06 0:41 
QuestionIn crystal report data are not displayed when passing paramete Pin
subhsam12-Jul-06 23:14
subhsam12-Jul-06 23:14 

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.