Hi,
You asked yesterday the same question,  with more details even !
This was the answer I gave you yesterday, it's still valid today 
 
Hi,
Do this :
Create a new class ButtonEx : Button
{
char letter;
ButtonEx( char whatLetter){ letter = whatLetter; }
}
then create as many controls as you need :
// CODE TAKEN FROM  cody's post
for (char l = 'A'; l<='Z'; l++)
{
ButtonEx b = new ButtonEx( l);
b.Text = l.ToString();
b.OnClick = new EventHandler( letterButton_Clicked); ///   <<=== the real
thing
myForm.Controls.Add(b);
}
void letterButton_Clicked( object sender ... )
{
//cast the sender to the new button
ButtonEx clicked = ( ButtonEx) sender;
//access the char
clicked.Letter;
//do as needed
}
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
	
		
			
				freddy said:
			
		
	
	
		
		
			I am creating an inventory program, I would like to know how to create A to
Z
buttons on runtime and than save data to the letter. Like if I hit F I
will
get all the names that start with F