Click here to Skip to main content
15,916,835 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Random letters Pin
Are Jay6-Feb-07 6:47
Are Jay6-Feb-07 6:47 
GeneralRe: Random letters Pin
harveyhanson6-Feb-07 6:51
harveyhanson6-Feb-07 6:51 
AnswerRe: Random letters Pin
Guffa6-Feb-07 7:38
Guffa6-Feb-07 7:38 
GeneralRe: Random letters Pin
harveyhanson6-Feb-07 8:41
harveyhanson6-Feb-07 8:41 
GeneralRe: Random letters Pin
Christian Graus6-Feb-07 9:39
protectorChristian Graus6-Feb-07 9:39 
GeneralRe: Random letters Pin
Guffa6-Feb-07 10:33
Guffa6-Feb-07 10:33 
GeneralRe: Random letters [modified] Pin
TwoFaced6-Feb-07 12:17
TwoFaced6-Feb-07 12:17 
GeneralRe: Random letters Pin
harveyhanson18-Feb-07 11:40
harveyhanson18-Feb-07 11:40 
Ok, ive sorted this:

Dim c1 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter1.Text = c1.ToString()
Dim c2 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter2.Text = c2.ToString()
Dim c3 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter3.Text = c3.ToString()
Dim c4 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter4.Text = c4.ToString()
Dim c5 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter5.Text = c5.ToString()
Dim c6 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter6.Text = c6.ToString()
Dim c7 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter7.Text = c7.ToString()
Dim c8 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter8.Text = c8.ToString()
Dim c9 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter9.Text = c9.ToString()
Dim c10 As Char = Convert.ToChar(rnd.Next(97, 122)) : lblLetter10.Text = c10.ToString()

Is there anyway to put this in a loop so it doesnt take up so many lines of code, i know im just being pedantic, just thought i would check!
GeneralRe: Random letters Pin
TwoFaced18-Feb-07 11:47
TwoFaced18-Feb-07 11:47 
GeneralRe: Random letters Pin
harveyhanson18-Feb-07 12:01
harveyhanson18-Feb-07 12:01 
GeneralRe: Random letters Pin
TwoFaced18-Feb-07 19:28
TwoFaced18-Feb-07 19:28 
QuestionDisplay Pin
Misanthropia6-Feb-07 5:53
Misanthropia6-Feb-07 5:53 
AnswerRe: Display Pin
Christian Graus6-Feb-07 9:42
protectorChristian Graus6-Feb-07 9:42 
QuestionListView Pin
CodingYoshi6-Feb-07 4:40
CodingYoshi6-Feb-07 4:40 
AnswerRe: ListView Pin
TwoFaced6-Feb-07 7:20
TwoFaced6-Feb-07 7:20 
GeneralRe: ListView Pin
CodingYoshi6-Feb-07 14:36
CodingYoshi6-Feb-07 14:36 
GeneralRe: ListView Pin
TwoFaced6-Feb-07 16:34
TwoFaced6-Feb-07 16:34 
Questiondelay ? Pin
Narfix6-Feb-07 4:26
professionalNarfix6-Feb-07 4:26 
QuestionHow can i make an installable file...? Pin
fmlove6-Feb-07 4:10
fmlove6-Feb-07 4:10 
AnswerRe: How can i make an installable file...? Pin
Taylor Kobani6-Feb-07 5:21
Taylor Kobani6-Feb-07 5:21 
AnswerRe: How can i make an installable file...? Pin
FeRtoll6-Feb-07 6:21
FeRtoll6-Feb-07 6:21 
GeneralRe: How can i make an installable file...? Pin
fmlove6-Feb-07 22:46
fmlove6-Feb-07 22:46 
GeneralRe: How can i make an installable file...? Pin
FeRtoll7-Feb-07 2:53
FeRtoll7-Feb-07 2:53 
QuestionHow can i make an installable file...? Pin
fmlove6-Feb-07 4:10
fmlove6-Feb-07 4:10 
AnswerRe: How can i make an installable file...? Pin
Kschuler6-Feb-07 10:12
Kschuler6-Feb-07 10:12 

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.