Buenas, me acabo de registrar en el foro, aunque ya me ha ayudado bastante, pero ahora necesito ayuda personalizada, aqui les va.
Tengo un form al cual le asigno labels y textbox dentro de un bucle, y tengo un problema quiero asignar a los textbox un evento en keypress para poder hacer que se ingresen solo numeros, cualquier ayuda se agradece, muchas gracias

aqui esta el codigo, lo hago en el load del form
private void DatosChancador_Load(object sender, EventArgs e)
{
Int16 x=0, y = 40;
for (int i = 0; i < Program.ValorMalla.Length; i++)
{
Label lb = new Label();
Label lb2 = new Label();
TextBox tb = new System.Windows.Forms.TextBox();
lb.Text =Convert.ToString(Program.ValorMalla[i]);
lb2.Text = Program.TamañoMalla[i];
lb.Size = label1.Size;
lb.Visible = true;
lb2.Font = new System.Drawing.Font("Latha", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
lb.Font = new System.Drawing.Font("Latha", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
lb2.Visible = true;
tb.Name = string.Concat("Txtb", i);
tb.Size = textBox1.Size;
tb.TabIndex = i;
tb.MaxLength = 7;
tb.KeyPress +=new KeyPressEventHandler(tb_KeyPress);
tb.Location= new System.Drawing.Point((x+80),(y-3));
lb.Location = new System.Drawing.Point((x +40), (y));
lb2.Location = new System.Drawing.Point((x), (y));
this.Controls.Add(tb);
this.Controls.Add(lb);
this.Controls.Add(lb2);
if (i < 10) { y += 28; }
if (i == 10) { y = 40; x = 150; }
if (i > 11 && i < 22) { y += 28; }
if (i == 22) { y = 40; x = 300; }
if (i > 22 && i < 33) { y += 28; }
if (i == 33) { y = 40; x = 450; }
if (i > 33 && i < 44) { y += 28; }
if (i == 44) { y = 40; x = 600; }
if (i > 44 && i < 55) { y += 28; }
}
}
private void tb_KeyPress(object sender, System.Windows.Forms.KeyEventArgs e)
{
TextBox tb = (TextBox)sender;
MessageBox.Show("holi");
/*if (e.KeyChar == 8)
{
e.Handled = false;
return;
}
bool IsDec = false;
int nroDec = 0;
for (int i = 0; i < textBox1.Text.Length; i++)
{
if (textBox1.Text[i] == '.')
IsDec = true;
if (IsDec && nroDec++ >= 2)
{
e.Handled = true;
return;
}
}
if (e.KeyChar >= 48 && e.KeyChar <= 57)
e.Handled = false;
else if (e.KeyChar == 46)
e.Handled = (IsDec) ? true : false;
else
e.Handled = true;
*/
}