Click here to Skip to main content
15,917,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: if, then statement Pin
jds12077-Feb-07 5:35
jds12077-Feb-07 5:35 
GeneralRe: if, then statement Pin
jds12077-Feb-07 5:58
jds12077-Feb-07 5:58 
QuestionMy.Settings won't serialize my class Pin
TwoFaced6-Feb-07 7:52
TwoFaced6-Feb-07 7:52 
AnswerRe: help help help!! Pin
Christian Graus6-Feb-07 9:35
protectorChristian Graus6-Feb-07 9:35 
QuestionRandom letters Pin
harveyhanson6-Feb-07 6:02
harveyhanson6-Feb-07 6:02 
AnswerRe: Random letters Pin
FeRtoll6-Feb-07 6:26
FeRtoll6-Feb-07 6:26 
GeneralRe: Random letters Pin
harveyhanson6-Feb-07 6:32
harveyhanson6-Feb-07 6:32 
AnswerRe: Random letters Pin
Are Jay6-Feb-07 6:47
Are Jay6-Feb-07 6:47 
' Create an ArrayList and fill it with ASCII values
    Dim salt As New ArrayList
    For num As Integer = 65 To 90
      salt.Add(num)
    Next

    Dim rand As New Random()
    Dim iPos As Integer = 0
    Dim cTemp As Char

    While salt.Count > 0

      ' Get a random position within the ArrayList
      ' use the Random.Next(min, max)   
      iPos = CInt(rand.Next(0, salt.Count - 1))

      ' Retrieve the letter within the ArrayList
      '	using ArrayList.Item(iPos)  
      cTemp = Convert.ToChar(CInt(salt.Item(iPos)))

      ' TODO:  cTemp holds your random letter 
      MsgBox(cTemp.ToString)

      ' Remove the letter within the ArrayList
      '	using ArrayList.RemoveAt(iPos)
      salt.RemoveAt(iPos)

      ' Using the above statment will 
      '	decrease the ArrayList.Count 

    End While

This might be a little easier to under stand. Good luck.

I'm listening but I only speak GEEK.

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 
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 

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.