Hi,
I need to have all the letters of the alphabet displayed across my tabpage, with each letter clickable. Can someone pls help me; I can't get this right, I only have the letter A displayed:
Label[] lblalpha = null;
lblalpha = new Label[26];
string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char[] array = alphabet.ToCharArray();
for(int i=0; i < array.Length; i++)
{
char letter = array[i];
lblalpha[i] = new Label();
lblalpha[i].Visible = true;
lblalpha[i].Text = letter.ToString();
lblalpha[i].Location = new Point(74 + 2*i, 51);
lblalpha[i].Cursor = Cursors.Hand;
lblalpha[i].Enabled = true;
this.tabPage2.Controls.Add(lblalpha[i]);
lblalpha[i].Click += new System.EventHandler(lblalpha_Click);
}
Appreciate so much any help. Thanks in advance!