A
Adrian
I want to move to the next text box when enter is pressed.
The text boxes are in tab order and start with 0.
Could someone please correct the error line for me?
Many thanks.
private void next(Object o, KeyPressEventArgs e)
{
if(e.KeyChar == (char)13)
{
for(int k = 0; k<20;k++)
{
if(Controls[k] is TextBox)
SelectNextControl(); // error
}
}
}
The text boxes are in tab order and start with 0.
Could someone please correct the error line for me?
Many thanks.
private void next(Object o, KeyPressEventArgs e)
{
if(e.KeyChar == (char)13)
{
for(int k = 0; k<20;k++)
{
if(Controls[k] is TextBox)
SelectNextControl(); // error
}
}
}