Actually, I thought of a better way (faster, simpler)
string text = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz";
for (int i=0; i<text.Length; i++)
{
listBox1.Items.Add(text[i]);
}
ShaneB
"ShaneB" <st********@yahoo.com> wrote in message
news:ep**************@TK2MSFTNGP12.phx.gbl...
// Put all the uppercase letters in the listbox
int i;
for (i = 65; i<91; i++)
{
listBox1.Items.Add(Convert.ToChar(i));
}
// Put all the lowercase letters in the listbox
for (i = 97; i<123; i++)
{
listBox1.Items.Add(Convert.ToChar(i));
}
ShaneB
"DAVID STARKENBURG" <da*******@msn.com> wrote in message
news:ul**************@TK2MSFTNGP14.phx.gbl...I am new to Programming and I would like to know if there is simple code
to
populate (not sure if this is the right word) a list box with the upper
case
letters A-Z and lower case letters a-z. Is there a way around having to
type
each letter individually either into an array or into the items property
of
the list box?